string File_Passwd_Cvs::generatePassword (
string $pass
, string $salt = null
)
Generate a "CVS" pserver style password.
$pass
the plaintext password to encrypt
$salt
the salt to use for encryption (usually empty)
Returns string encrypted password.
File_Passwd_Cvs::generatePassword()
<?php
require_once 'File/Passwd/Cvs.php';
$pass = File_Passwd_Cvs::generatePassword('secret');
?>
This function should be called statically.