crypt

function call:
string crypt( string $str [, string $salt ] )

description:
crypt() will return an encrypted string using the standard Unix DES-based encryption algorithm or alternative algorithms that may be available on the system.

If no Salt-Argument is given, PHP randomly generates a new one with every use of the function.

To generate a .htpasswd password, simple copy your password in $str and click on "run". The parameter $salt must not be filled. Now copy the generated password in your .htpasswd file with a : as separator to the username in a new line (username:password).

test crypt online:
$str

$salt


Werbung
Information
PHP-Version: 5.2.6
Last changes: my blog (german only)
Change language: crypt auf Deutsch online testen