phpseclib\Crypt\RC2::decrypt PHP Method

decrypt() public method

Mostly a wrapper for \phpseclib\Crypt\Common\SymmetricKey::decrypt, with some additional OpenSSL handling code
See also: self::encrypt()
public decrypt ( string $ciphertext ) : string
$ciphertext string
return 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);
    }