File_Passwd_Authbasic::generatePassword()

File_Passwd_Authbasic::generatePassword() -- Generate password

Synopsis

mixed File_Passwd_Authbasic::generatePassword (string $pass [, string $mode = 'des' [, string $salt = null]])

Описание

Generate a password usable for "AuthBasic" authentication.

The encryption mode can either be FILE_PASSWD_DES, FILE_PASSWD_SHA or FILE_PASSWD_MD5.

Параметр

string $pass

the plaintext password to encrypt

string $mode

the encryption mode to use

string $salt

the salt to use for encryption (usually empty)

Возвращаемое значение

Returns string encrypted password, or PEAR_Error FILE_PASSWD_E_INVALID_ENC_MODE if encryption mode is not supported.

Пример

Заметка

Эта функция должна вызываться статически.


HIVE: All information for read only. Please respect copyright!
Hosted by hive йца: йХЕБЯЙЮЪ ЦНПНДЯЙЮЪ АХАКХНРЕЙЮ