In
Doesn't this mean you're starting from index 124 (which is the 125th character) instead of 123?
p.s: it's "b+="
A python variation I wrote sometime ago:
Edit: Would be cool to try doing a one liner with lambdas.
Code:
if (countTo123 > 123)p.s: it's "b+="
A python variation I wrote sometime ago:
|
PYTHON-Code:
def decrypt_lf2(edata): key="odBearBecauseHeIsVeryGoodSiuHungIsAGo" pos=0 ddata='' for a in range(123, len(edata)-1): try: ddata+=chr(ord(edata[a])-ord(key[pos])) except ValueError: pass pos+=1 if pos==len(key): pos=0 return ddata def encrypt_lf2(ddata): key="odBearBecauseHeIsVeryGoodSiuHungIsAGo" pos=0 edata='' for a in range(0, len(ddata)-1): edata+=chr(ord(ddata[a])+ord(key[pos])) pos+=1 if pos==len(key): pos=0 return (" "*123)+edata |
Edit: Would be cool to try doing a one liner with lambdas.
![[Image: signature.png]](http://s3.postimg.org/wedqxlk3n/signature.png)
A-Engine: A new beat em up game engine inspired by LF2. Coming soon
A-Engine Dev Blog - Update #8: Timeout

Chat
