public getRandom () Returns a secure random number generator instance
public setDefaultHash (mixed $defaultHash) Sets the default hash
extends class Phalcon\Exception
public getTokenKey () Generates a pseudo random token key to be used as input’s name in a CSRF check
public hash (mixed $password, [mixed $workFactor]) Creates a password hash using bcrypt with a pseudo random
integer CRYPT_SHA256
integer CRYPT_BLOWFISH_A
public bytes ([mixed $len]) Generates a random binary string The Random::bytes method returns a string
public checkHash (mixed $password, mixed $passwordHash, [mixed $maxPassLength]) Checks a plain text
public getToken () Generates a pseudo random token value to be used as input’s value in a CSRF check
Page 1 of 5