Public feed #1042325

hackthissite challenge 6

public python v1 · immutable
Raw Edit
·published 2008-06-08 21:09 UTC
rendered paste body
def 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