hackthissite challenge 6
public python v1 · immutabledef decrypt(string): i=0 translated='' for char in string: hax=ord(char) hax=hax-i translated=translated+chr(hax) i=i+1 print translateddef encrypt(string): i=0 translated='' for char in string: hax=ord(char) hax=hax+i translated=translated+chr(hax) i=i+1 print translated