yii\base\Security::decryptByKey PHP Méthode

decryptByKey() public méthode

Verifies and decrypts data encrypted with Security::encryptByKey.
See also: encryptByKey()
public decryptByKey ( string $data, string $inputKey, string $info = null ) : boolean | string
$data string the encrypted data to decrypt
$inputKey string the input to use for encryption and authentication
$info string optional context and application specific information, see [[hkdf()]]
Résultat boolean | string the decrypted data or false on authentication failure
    public function decryptByKey($data, $inputKey, $info = null)
    {
        return $this->decrypt($data, false, $inputKey, $info);
    }