I'm learning Python 3 and i'm trying to make a Caesar Cypher Algorithm. I'm taking a string with commandline input and then I want to change the hexa bytes values (I mean add or substract an integer on it) and finally return the modified string.
stringToDecode = "L|k€y+*^*zo‚*€kvsno|*k€om*vo*zk}}*cyvksr"
for i in range(256):
print('%i: %s' % (i, repr(''.join([chr((ord(c)+i)%256) for c in stringToDecode]))))
Here is what i managed to do atm but it doesn't works really well. Thx a lot for reading! :)
ord()value of each character by the same amount in order to implement a Caesar Cypher, right?