Enable Javascript in your browser and then refresh this page, for a much enhanced experience.
First solution in Clear category for Caesar Cipher (encryptor) by rodka81
def rotate_ascii(char, delta):
new_char = ord(char)+delta
if new_char < 97:
new_char += 26
elif new_char > 122:
new_char -= 26
return chr(new_char)
def to_encrypt(text, delta):
return ''.join([rotate_ascii(i, delta) if i.islower() else i for i in text])
Aug. 28, 2018
Comments: