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 |
Please login to continue.