string File_Passwd_Authdigest::generatePassword (
string $user
, string $realm
, string $pass
)
Generate a password usable for "AuthDigest" authentication.
$user
the username
$realm
the realm the user is in
$pass
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.