File_Passwd_Smb::generatePassword()

File_Passwd_Smb::generatePassword() -- Generate password

Referentiesamenvatting

string File_Passwd_Smb::generatePassword (string $pass [, string $mode = 'nt'])

Beschrijving

Generate a "Samba" server style password.

The encryption mode can either be FILE_PASSWD_NT or FILE_PASSWD_LM.

Parameter

string $pass

the plaintext password to encrypt

string $mode

the encryption mode to use

Return waarde

Returns string encrypted password.

Voorbeeld

Note

Deze functie zou statisch moeten worden aangeroepen.

Zie

See also Crypt_CHAP_MSv1::ntPasswordHash() , Crypt_CHAP_MSv1::lmPasswordHash() .