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