phpseclib\Crypt\RC2::decrypt PHP 메소드

decrypt() 공개 메소드

Mostly a wrapper for \phpseclib\Crypt\Common\SymmetricKey::decrypt, with some additional OpenSSL handling code
또한 보기: self::encrypt()
public decrypt ( string $ciphertext ) : string
$ciphertext string
리턴 string $plaintext
    function decrypt($ciphertext)
    {
        if ($this->engine == self::ENGINE_OPENSSL) {
            $temp = $this->key;
            $this->key = $this->orig_key;
            $result = parent::decrypt($ciphertext);
            $this->key = $temp;
            return $result;
        }
        return parent::decrypt($ciphertext);
    }