File_Passwd_Unix::setMode()

File_Passwd_Unix::setMode() -- Set encryption mode

Synopsis

mixed File_Passwd_Unix::setMode (string $mode)

Opis

Set encryption mode to use.

Supported encryption modes are 'des' and 'md5'.

You can use the constants FILE_PASSWD_MD5 and FILE_PASSWD_DES for this purpose.

Parametr

string $mode

encryption mode to use

Zwracana wartość

Zwraca TRUE w przypadku powodzenia, PEAR_Error w przypadku niepowodzenia.

Returns PEAR_Error FILE_PASSWD_E_INVALID_ENC_MODE, if supplied encryption mode is not supported.

Zobacz

See File_Passwd_Unix::listModes()

See File_Passwd_Unix::getMode()

Uwagi

Ta funkcja nie może być wywołana statycznie.