using codecs for encryption?
Joshua Muskovitz
joshm at taconic.net
Thu Dec 27 23:20:46 EST 2001
This just in, from the top of my head...
Has anyone thought about implementing encryption libraries (des, pgp, &c) as
codecs in 2.2? Would there be a way to pass a key (or keypair) to the
codec? The codec would also have to maintain some sort of state somehow.
I just think it would be really cool to be able to say something like:
c = DESCodec(key)
plaintext = 'shh, here's the secret formula...'
ciphertext = plaintext.encode(c)
...
c.resetState()
plaintext = ciphertext.decode(c)
-- josh
-----= Posted via Newsfeeds.Com, Uncensored Usenet News =-----
http://www.newsfeeds.com - The #1 Newsgroup Service in the World!
-----== Over 80,000 Newsgroups - 16 Different Servers! =-----
More information about the Python-list
mailing list