Extracted from Pike v7.4 release 341 at 2005-11-21.
pike.ida.liu.se
[Top]
predef::
Crypto

Method Crypto.crypt_md5()


Method crypt_md5

string Crypto.crypt_md5(string password)
string Crypto.crypt_md5(string password, string salt)

Description

This function crypts a password with an algorithm based on MD5 hashing.

If salt is left out, an 8 character long salt (max length) will be randomized.

Verification can be done by supplying the crypted password as salt :

crypt_md5(typed_pw, crypted_pw) == crypted_pw

See also

crypt()