re | [SCTF2019]creakme
参考 https://www.52pojie.cn/thread-980141-1-1.html
是一个AES CBC的加密
1 from Crypto.Cipher import AES 2 import base64 3 4 5 def AESencrypt(data, key): 6 aes1 = AES.new(key,AES.MODE_CBC, iv=b"sctfsctfsctfsctf") 7 encrypted = aes1.decrypt(data) 8 return encrypted 9 10 11 aeskey = b'sycloversyclover' 12 _data = "nKnbHsgqD3aNEB91jB3gEzAr+IklQwT1bSs3+bXpeuo=" 13 data = base64.b64decode(_data) 14 r1 = AESencrypt(data, aeskey) 15 print (r1)
本文来自博客园,作者:Mz1,转载请注明原文链接:https://www.cnblogs.com/Mz1-rc/p/14215797.html
如果有问题可以在下方评论或者email:mzi_mzi@163.com