Class Mage_Core_Model_Encryption

Description

Provides basic logic for hashing passwords and encrypting/decrypting misc data

Located in /Core/Model/Encryption.php (line 34)


	
			
Variable Summary
Varien_Crypt_Mcrypt $_crypt
Method Summary
string decrypt (string $data)
string encrypt (string $data)
string getHash (string $password, [mixed $salt = false])
string hash (string $data)
bool validateHash (string $password, string $hash)
Varien_Crypt_Mcrypt validateKey (string $key)
Varien_Crypt_Mcrypt _getCrypt ([string $key = null])
Variables
Varien_Crypt_Mcrypt $_crypt (line 39)
  • access: protected
Mage_Core_Helper_Data $_helper (line 43)
  • access: protected
Methods
decrypt (line 142)

Decrypt a string

  • access: public
string decrypt (string $data)
  • string $data
encrypt (line 131)

Encrypt a string

  • access: public
string encrypt (string $data)
  • string $data
getHash (line 69)

Generate a [salted] hash.

$salt can be: false - a random will be generated integer - a random with specified length will be generated string

  • access: public
string getHash (string $password, [mixed $salt = false])
  • string $password
  • mixed $salt
hash (line 83)

Hash a string

  • access: public
string hash (string $data)
  • string $data
setHelper (line 51)

Set helper instance

  • access: public
validateHash (line 96)

Validate hash against hashing method (with or without salt)

  • throws: Exception
  • access: public
bool validateHash (string $password, string $hash)
  • string $password
  • string $hash
validateKey (line 153)

Return crypt model, instantiate if it is empty

  • access: public
Varien_Crypt_Mcrypt validateKey (string $key)
  • string $key
_getCrypt (line 114)

Instantiate crypt model

  • access: protected
Varien_Crypt_Mcrypt _getCrypt ([string $key = null])
  • string $key

Documentation generated on Fri, 11 Feb 2011 17:02:17 +0200 by phpDocumentor 1.4.3