PEAR Manual
This manual is provided as a courtesy. It is not an official source. Please check pear.php.net for updated information.
string File_Passwd_Cvs::generatePassword (string $pass [, string $salt = null])
string File_Passwd_Cvs::generatePassword
Generate a "CVS" pserver style password.
the plaintext password to encrypt
the salt to use for encryption (usually empty)
Returns string encrypted password.
Example 37-1. File_Passwd_Cvs::generatePassword()
require_once 'File/Passwd/Cvs.php'; $pass = File_Passwd_Cvs::generatePassword('secret');
This function should be called statically.