R3m/framework Function reference string.crypt

{string.crypt(String $string, String $salt=null)}

One-way string hashing.


This function is not (yet) binary safe!

{string.crypt()} will return a hashed string using the standard Unix DES-based algorithm or alternative algorithms.

Make sure to specify a strong enough salt for better security.

{password.hash()} uses a strong hash, generates a strong salt, and applies proper rounds automatically.
{password.hash()} is a simple {string.crypt()} wrapper and compatible with existing password hashes.
Use of {password.hash()} is encouraged.

Returns the hashed string, or a string that is shorter than 13 characters and is guaranteed to differ from the salt on failure.

More information:


Last modified: 2021-06-07

© 2021 universeorange.com