Python - Reverse Cipher

This is the most basic and weakest encrypting method: Reverse Cipher

def reverse_cipher(msg):
    translated = ''
    for i in reversed(range(len(msg))):
        translated += msg[i]
    return translated


>>> reverse_cipher('This is so genius')
'suineg os si sihT'



Comments