Reverse cipher
The reverse cipher is one of the simplest encryption techniques that involves reversing the order of characters in a message to obscure its meaning. For example, the word "hello" would be transformed into "olleh."
def reverse(message):
output = ""
i = len(message) - 1 # starting from the last character
while i >= 0:
output = output + message[i] # appending the current character
i = i - 1 # moving to the previous character
return output
message = "Secret message"
print(reverse(message))