Name

crypt

Synopsis

$encrypted_string = crypt($string);
$encrypted_string = crypt($string, $salt);

Returns an encrypted version of string. The encryption is the standard Unix DES encryption as used in Unix passwords and the like. An optional two-character salt can be provided.

Get MySQL and mSQL now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.