password_hash()

password_hash($password, $algo[, $options = array()])

Parameters:
  • $password (string) – Plain-text password
  • $algo (int) – Hashing algorithm
  • $options (array) – Hashing options
Returns:

Hashed password or FALSE on failure

Return type:

string

For more information, please refer to the PHP manual for password_hash().

Note

Unless you provide your own (and valid) salt, this function has a further dependency on an available CSPRNG source. Each of the following would satisfy that: - mcrypt_create_iv() with MCRYPT_DEV_URANDOM - openssl_random_pseudo_bytes() - /dev/arandom - /dev/urandom

doc_CodeIgniter
2016-10-15 16:32:32
Comments
Leave a Comment

Please login to continue.