base\Security decrypt()

decrypt() protected method

Decrypts data.

See also encrypt().

protected boolean|string decrypt ( $data, $passwordBased, $secret, $info )
$data string

Encrypted data to be decrypted.

$passwordBased boolean

Set true to use password-based key derivation

$secret string

The decryption password or key

$info string

Context/application specific information, @see encrypt()

return boolean|string

The decrypted data or false on authentication failure

throws yii\base\InvalidConfigException

on OpenSSL not loaded

throws yii\base\Exception

on OpenSSL error

doc_Yii
2016-10-30 16:52:19
Comments
Leave a Comment

Please login to continue.