Google News
logo
CakePHP - Interview Questions
What is "Security.salt" and "Security.cipherSeed" in CakePHP?
CakePHP provides various security features to keep data or passwords safe.
 
* Security.salt is a hash that is used to encrypt or decrypt text messages in CakePHP.
Security::encrypt($text, $key, $hmacSalt = null) ​

Here, $hmacSalt() is the salt to use for HMAC process. Null is used to defined to use Security.salt
 
* Security.cipherSeed is nothing but the key used to encrypt or dedcrypt the message in Security::cipher() function.
Security::encrypt($text, $key, $hmacSalt = null)​

 

Here, $key is the 256 bit/32 byte cipher key or Security.cipherSeed
Advertisement