crypt()

It returns a string encrypted using DES, Blowfish, or MD5 algorithms.

Example

<?php
echo crypt(“phpcode”);
?>

Output

$1$IPvU1z.J$K0G7fAVaDY7KBRpEJcB62/

Share