rot_charset = raw_input("Charset: ")
tekst = raw_input("Text: ")
tekst2 = ""
for chrx in tekst:
if chrx in rot_charset:
tekst2 += rot_charset[(rot_charset.index(chrx) + len(rot_charset)/2) % len(rot_charset)]
else:
tekst2 += chrx
print tekst2
No comments:
Post a Comment