Properties

Methods

__construct()

__construct()

Initializes the hash object

generateUserPassword()

generateUserPassword(\ptejada\uFlex\User $user, String $password, bool $generateOld) : string

Generate a password for a user

Parameters

\ptejada\uFlex\User $user
String $password
  • Clear text password
bool $generateOld

Returns

string

generate()

generate(int $uid, bool|string $hash) : string

Generates a unique hash

Parameters

int $uid

user id

bool|string $hash

optional hash to implement

Returns

string

examine()

examine(string $hash) : array

Checks and validates a confirmation hash

Parameters

string $hash

hashed string to check

Returns

array

decode()

decode(string $number) : int

Decodes a string into an integer

Parameters

string $number

string to decode into an integer

Returns

int

encode()

encode(int $number) : string

Encodes an integer

Parameters

int $number

integer to encode

Returns

string —

encoded integer string