ctf逆向 反编译之后C# 代码

需要 密匙和初始化向量IV 从资源文件得到 原始密匙为

进行异或运算得到加密后密匙520XGAME
编写如下代码解密
from base64 import b64decode
from Crypto.Cipher import DES
from Crypto.Util.Padding import unpad
def decrypt(ciphertext):
# base64 解码
ciphertext = b64decode(ciphertext)
# 解密 DES
cipher = DES.new(key, DES.MODE_CBC, iv)
plaintext = unpad(cipher.decrypt(ciphertext), DES.block_size)
return plaintext.decode('utf-8')
key = '520XGAME'
iv = "STV>!'+#"
ciphertext = "s7/e+JnJbGEdE9j2g3XHxgym+G6Fu/PjJuW80NeMKgemdqaWG9KVM8Tfcc0eRfaA"
print(decrypt(ciphertext))
但报错,应该如何解决得到应输入的值