Registration Challenge
If we opened cryptohack and naviagted to register an account:

We will notice that it asks us to solve a roman emperor in order to submit the registration.
We can do this by coping that cipher text and go to for example, cyberchef, or dcode.fr or whatever, and try to decode it.
I wrote a simple python script to get the decoded string:
import string
"""
Caesar Cipher:
ord for changing the character shape to decimal, and then abstract it from the decimal value of a in small letters,
and then use the mod with 26, and after all that add the value to the decimal value of a.
"""
def Caesar(String, shift):
shifting = ""
for i in String:
if i in string.ascii_lowercase:
shifting += chr((ord(i) - ord('a') + shift) % 26 + ord('a'))
elif i in string.ascii_uppercase:
shifting += chr((ord(i) - ord('A') + shift) % 26 + ord('A'))
else:
shifting += i
return shifting
String = input("Please Input Your Encoded String: ")
for i in range(26):
print(f"Encoded String: {String}")
print("Decoded String: " + Caesar(String, i) + "\n")Last updated