public function decrypt(string $value, string $key, bool $base64 = false)
    {
        if ($base64) {
            $value = base64_decode($value);
        }
        $ret = $this->decryptBinary($value, $key);
        return unserialize($ret);
    }
public function decrypt(string $value, string $key, bool $base64 = false)
    {
        if ($base64) {
            $value = base64_decode($value);
        }
        $ret = $this->decryptBinary($value, $key);
        return unserialize($ret);
    }
public function decrypt ( string $ value , string $ key , bool $ base64 = false ) { if ( $ base64 ) { $ value = base64_decode ( $ value ) ; } $ ret = $ this -> decryptBinary ( $ value , $ key ) ; return unserialize ( $ ret ) ; }
Decrypt a serialized value

@param string $value
@param string $key
@param boolean $base64 Whether to base64 decode the value before decrypting
@return mixed
Decrypt a serialized value