previousFile_Passwd_Authdigest::userInRealm (Previous) (Next) MP3_Idnext

View this page in Last updated: Sun, 18 Oct 2009
English | Brazilian Portuguese | Chinese | Dutch | French | German | Hungarian | Japanese | Polish | Russian | Spanish | Turkish

File_Passwd_Authdigest::generatePassword

File_Passwd_Authdigest::generatePassword() – Generate password

Synopsis

string File_Passwd_Authdigest::generatePassword ( string $user , string $realm , string $pass )

Description

Generate a password usable for "AuthDigest" authentication.

Parameter

string $user

the username

string $realm

the realm the user is in

string $pass

the plaintext password

Return value

Returns string encrypted password.

Example

File_Passwd_Authdigest::generatePassword()

<?php
require_once 'File/Passwd/Authdigest.php';
$pass File_Passwd_Authdigest::generatePassword('mike''restricted''secret');
?>

Note

This function should be called statically.

previousFile_Passwd_Authdigest::userInRealm (Previous) (Next) MP3_Idnext

Download Documentation Last updated: Sun, 18 Oct 2009
Do you think that something on this page is wrong? Please file a bug report or add a note.
User Notes:
There are no user contributed notes for this page.