yii\base\Security::decryptByPassword PHP Метод

decryptByPassword() публичный Метод

Verifies and decrypts data encrypted with Security::encryptByPassword.
См. также: encryptByPassword()
public decryptByPassword ( string $data, string $password ) : boolean | string
$data string the encrypted data to decrypt
$password string the password to use for decryption
Результат boolean | string the decrypted data or false on authentication failure
    public function decryptByPassword($data, $password)
    {
        return $this->decrypt($data, true, $password, null);
    }