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

decryptByPassword() public méthode

Verifies and decrypts data encrypted with Security::encryptByPassword.
See also: encryptByPassword()
public decryptByPassword ( string $data, string $password ) : boolean | string
$data string the encrypted data to decrypt
$password string the password to use for decryption
Résultat boolean | string the decrypted data or false on authentication failure
    public function decryptByPassword($data, $password)
    {
        return $this->decrypt($data, true, $password, null);
    }