previousFile_Passwd_Cvs::verifyPasswd (Previous) (Next) File_Passwd_Smbnext

View this page in Last updated: Sun, 18 Oct 2009
English | Brazilian Portuguese | Chinese | Dutch | French | German | Hungarian | Japanese | Polish | Russian | Spanish | Turkish

File_Passwd_Cvs::generatePassword

File_Passwd_Cvs::generatePassword() – Generate password

Synopsis

string File_Passwd_Cvs::generatePassword ( string $pass , string $salt = null )

Description

Generate a "CVS" pserver style password.

Parameter

string $pass

the plaintext password to encrypt

string $salt

the salt to use for encryption (usually empty)

Return value

Returns string encrypted password.

Example

File_Passwd_Cvs::generatePassword()

<?php
require_once 'File/Passwd/Cvs.php';
$pass File_Passwd_Cvs::generatePassword('secret');
?>

Note

This function should be called statically.

previousFile_Passwd_Cvs::verifyPasswd (Previous) (Next) File_Passwd_Smbnext

Download Documentation Last updated: Sun, 18 Oct 2009
Do you think that something on this page is wrong? Please file a bug report or add a note.
User Notes:
There are no user contributed notes for this page.