REPOST: using codecs for encryption?

Joshua Muskovitz joshm at taconic.net
Fri Dec 28 05:20:46 CET 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! =-----

========= WAS CANCELLED BY =======:
Path: news.sol.net!spool1-milwwi.newsops.execpc.com!newsfeeds.sol.net!newspump.sol.net!nntp1.roc.gblx.net!nntp.gblx.net!nntp1.phx1.gblx.net!nntp.gblx.net!nntp.gblx.net!enews.sgi.com!news-xfer.nuri.net!feeder.kornet.net!news1.kornet.net!ua4canc3ll3r
From: "Joshua Muskovitz" <joshm at taconic.net>
Newsgroups: comp.lang.python
Subject: cmsg cancel <3c2bf123_2 at corp.newsgroups.com>
Control: cancel <3c2bf123_2 at corp.newsgroups.com>
Date: Mon, 31 Dec 2001 04:49:38 GMT
Organization: A poorly-installed InterNetNews site
Lines: 2
Message-ID: <cancel.3c2bf123_2 at corp.newsgroups.com>
NNTP-Posting-Host: 211.57.49.2
X-Trace: news2.kornet.net 1009775426 27193 211.57.49.2 (31 Dec 2001 05:10:26 GMT)
X-Complaints-To: usenet at news2.kornet.net
NNTP-Posting-Date: Mon, 31 Dec 2001 05:10:26 +0000 (UTC)
X-No-Archive: yes
X-Unac4ncel: yes
X-Commentary: I love NewsAgent 1.10 and the Sandblaster Cancel Engine Build 74 (19 March 1999)

This message was cancelled from within Mozilla.



More information about the Python-list mailing list