Tags: base64 rotated
Rating: 4.0
```
#!/usr/bin/python
from pwn import *
cipher = "D: mb xwhvxw mlnX 4X6AhPLAR4eupSRJ6FLt8AgE6JsLdBRxq57L8IeMyBRHp6IGsmgFIB5E :ztey xam lb lbaH"
cipher = cipher[::-1]
print(cipher)
decoded_cipher = ""
for i in range(len(cipher)):
if cipher[i].isupper():
val = ord(cipher[i]) + 12
if val > ord('Z'):
val = (val - ord('Z')) + ord('A') - 1
decoded_cipher += chr(val)
elif cipher[i].islower():
val = ord(cipher[i]) + 7
if val > ord('z'):
val = (val - ord('z')) + ord('a') - 1
decoded_cipher += chr(val)
elif cipher[i].isdigit():
val = ord('0') + ((int(cipher[i])+25) % 10)
decoded_cipher += chr(val)
else:
decoded_cipher += cipher[i]
decoded_cipher = decoded_cipher.split()[4].decode('base64')
print(decoded_cipher)
```