REPOST: using codecs for encryption?

Joshua Muskovitz joshm at
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)
plaintext = ciphertext.decode(c)

-- josh

-----= Posted via Newsfeeds.Com, Uncensored Usenet News =----- - The #1 Newsgroup Service in the World!
-----==  Over 80,000 Newsgroups - 16 Different Servers! =-----

========= WAS CANCELLED BY =======:
From: "Joshua Muskovitz" <joshm at>
Newsgroups: comp.lang.python
Subject: cmsg cancel <3c2bf123_2 at>
Control: cancel <3c2bf123_2 at>
Date: Mon, 31 Dec 2001 04:49:38 GMT
Organization: A poorly-installed InterNetNews site
Lines: 2
Message-ID: <cancel.3c2bf123_2 at>
X-Trace: 1009775426 27193 (31 Dec 2001 05:10:26 GMT)
X-Complaints-To: usenet at
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