ZurmoPasswordSecurityUtil Class Reference

Static Public Member Functions

static encrypt ($value, $salt=ZURMO_PASSWORD_SALT)
static decrypt ($value, $salt=ZURMO_PASSWORD_SALT)
static setPasswordSaltAndWriteToPerInstanceFile ($instanceRoot, $perInstanceFilename= 'perInstance.php')

Detailed Description

Helper class for encrypting/decrypting passwords

Definition at line 40 of file ZurmoPasswordSecurityUtil.php.


Member Function Documentation

static encrypt ( value,
salt = ZURMO_PASSWORD_SALT 
) [static]

Encrypt value, using CSecurityManager::encrypt method

Parameters:
string $value
string $salt
Returns:
string

Definition at line 48 of file ZurmoPasswordSecurityUtil.php.

static decrypt ( value,
salt = ZURMO_PASSWORD_SALT 
) [static]

Decrypt value, using CSecurityManager::decrypt method. Ignoring error from calling decrypt, since we cannot catch certain errors such as mcrypt_generic_init(): Iv size incorrect;

Parameters:
string $value
string $salt
Returns:
mixed

Definition at line 65 of file ZurmoPasswordSecurityUtil.php.

static setPasswordSaltAndWriteToPerInstanceFile ( instanceRoot,
perInstanceFilename = 'perInstance.php' 
) [static]

Generate zurmo password salt and write it to perInstance file.

Parameters:
$instanceRoot 
string $perInstanceFilename
Returns:
string

Definition at line 80 of file ZurmoPasswordSecurityUtil.php.


The documentation for this class was generated from the following file:
 All Data Structures Functions Variables
Generated on Sun May 28 07:10:32 2017