Extracted from Pike v7.3 release 18 at 2002-03-27.
pike.roxen.com
[Top]
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