PHP crypt Function : It encrypts the string using the DES, Blowfish, or MD5 algorithms.
PHP crypt Function Syntax
crypt(str,salt)
String : Input String
Salt : An additional string to make more secure encryption.
Return : Hashed String.
PHP crypt Function Example
$passwoord = "mypassword"; $str = crypt($passwoord); echo $str; |
Output of the above example will be :