[8740] in cryptography@c2.net mail archive
An encrypted socket protocol and library
daemon@ATHENA.MIT.EDU (Bram Cohen)
Fri May 25 19:10:34 2001
Date: Fri, 25 May 2001 16:05:33 -0700 (PDT)
From: Bram Cohen <bram@gawth.com>
To: Crypto List <cryptography@wasabisystems.com>,
People who supposedly write code <coderpunks@toad.com>,
PYTHON-CRYPTO@NIC.SURFNET.NL
Message-ID: <Pine.LNX.4.21.0105251556260.7183-100000@ultra.gawth.com>
MIME-Version: 1.0
Content-Type: TEXT/PLAIN; charset=US-ASCII
I've written some code for encrypting traffic over sockets, and would
appreciate analysis of both the protocol and the implementation.
The code, which includes documentation and test code, is at -
http://gawth.com/bram/BSockWrapper.py
It uses a very conservative design based on Diffie-Hellman. The one thing
I'm a little unsure of is how private keys should be selected (this
implementation skirts the issue by accepting them from elsewhere). Is
selecting a 20-bit random number as the private key reasonable?
-Bram Cohen
"Markets can remain irrational longer than you can remain solvent"
-- John Maynard Keynes
---------------------------------------------------------------------
The Cryptography Mailing List
Unsubscribe by sending "unsubscribe cryptography" to majordomo@wasabisystems.com