File_Passwd_Authdigest::generatePassword

File_Passwd_Authdigest::generatePassword() – パスワードを生成する

Synopsis

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

Description

"AuthDigest" 認証で使用可能なパスワードを生成します。

Parameter

string $user

ユーザ名。

string $realm

ユーザが属する realm 。

string $pass

プレーンテキスト形式のパスワード。

Return value

暗号化されたパスワードを文字列で返します。

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.