[Python|Crypto] on handhelds (was Re: Thanks for Python...)

Klaus Alexander Seistrup Klaus.Alexander.Seistrup at p98.f112.n480.z2.fidonet.org
Wed Jun 30 02:36:39 CEST 1999


From: Klaus Alexander Seistrup <kas at maps.magnetic-ink.dk>

Mordy Ovits wrote:

> #!/usr/local/bin/python
> from sys import*;from string import*;a=argv;[s,p,q]=filter(lambda x:x[:1]!=
> '-',a);d='-d'in a;e,n=atol(p,16),atol(q,16);l=(len(q)+1)/2;o,inb=l-d,l-1+d
> while s:s=stdin.read(inb);s and map(stdout.write,map(lambda i,b=pow(reduce(
> lambda x,y:(x<<8L)+y,map(ord,s)),e,n):chr(b>>8*i&255),range(o-1,-1,-1)))

'-',a);d='-d'in a;e,n=atol(p,16),atol(q,16);l=(len(q)+1)/2;o,inb=l-d,l-1+d
ValueError: unpack list of wrong size

??


  //Klaus

-- 
ˇˇˇ[ Magnetic Ink ]ˇˇˇˇˇˇˇˇˇˇˇˇˇˇˇˇˇˇˇˇˇˇˇˇˇˇˇˇˇˇˇˇˇˇˇˇˇˇˇˇˇˇˇˇˇˇˇˇˇˇˇˇˇˇˇˇˇˇ
ˇˇˇ[ http://www.magnetic-ink.dk/ ][ maps == mail abuse prevention system ]ˇˇˇ




More information about the Python-list mailing list