Enable Javascript in your browser and then refresh this page, for a much enhanced experience.
CaesarCipher.c solution in Clear category for Caesar Cipher (encryptor) by trudnopodobny
def to_encrypt(text, delta):
text = text.lower()
array = list(text)
text2 = ''
for a in array:
if ord(a) == 32: #32 is unicode number of space
text2 = text2 + ' '
else:
a = ord(a) + delta
if a > 122: #
a = a - 26 #in unicode lower letters are in range 97-122
if a < 97: #
a = a + 26 #
text2 = text2 + chr(a)
return text2
Oct. 8, 2018
Comments: