PHP crypt Function


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;

Try it »

Output of the above example will be :

PHP crypt Function

PHP crypt() Function


Advertisements

Add Comment

📖 Read More