falg應該是flag,問就是打CTF打的。 破解方法
可以口算。
以下是解碼腳本,大家可以隨意取用。
def decrypt_cloud_shadow_code(encoded_message):
# 將數字映射到字母(1 -> A,2 -> B,...,26 -> Z)
num_to_letter = {i: chr(64 + i) for i in range(1, 27)}
# 使用'0'作為分隔符將消息分成組
groups = encoded_message.split('0')
# 解密每個組
decrypted_message = ''
for group in groups:
if group: # 檢查組是否非空
total = sum(int(digit) for digit in group)
decrypted_message += num_to_letter.get(total, '?') # 對于無效數字,使用'?'表示
return decrypted_message