import base64
encrypted_str = "XUBdTFdScw5XCVRGTglJXEpMSFpOQE5AVVxJBRpLT10aYBpIVwlbCVZATl1WTBpaTkBOQFVcSQdH :)"
data = base64.b64decode(encrypted_str)
xor_key = [58, 41] # ':' (58), ')' (41)
decrypted = b''
for i in range(0, len(data), 2):
if i + 1 >= len(data):
break
a = data[i] ^ xor_key[0]
b = data[i+1] ^ xor_key[1]
decrypted += bytes([a, b])
print(decrypted.decode('utf-8'))
simple xor
julianus 2025-06-29 19:25:56 14 0 返回题目详情


作者:julianus
1
提交0
收入相关WriteUP
-
SusCTF2017-Caesar cipher
***收费WriteUP请购买后查看,VIP用户可免费查看***
- Crypto
- 4年前
-
easy_crypto
***收费WriteUP请购买后查看,VIP用户可免费查看***
- Crypto
- 4年前
-
简单加密
***收费WriteUP请购买后查看,VIP用户可免费查看***
- Crypto
- 4年前
-
2018-鼎网杯-3-track_hacker
***收费WriteUP请购买后查看,VIP用户可免费查看***
- Crypto
- 1年前
-
强网杯-强网先锋辅助
***收费WriteUP请购买后查看,VIP用户可免费查看***
- Crypto
- 1年前