string File_Passwd_Authdigest::generatePassword (string $user, string $realm, string $pass)
string File_Passwd_Authdigest::generatePassword
Generate a password usable for "AuthDigest" authentication.
the username
the realm the user is in
the plaintext password
Returns string encrypted password.
Example 37-1. File_Passwd_Authdigest::generatePassword()
require_once 'File/Passwd/Authdigest.php'; $pass = File_Passwd_Authdigest::generatePassword('mike', 'restricted', 'secret');
This function should be called statically.