Article View: alt.privacy.anon-server
Article #263960Re: Announcing encoDHer - a python utility for symmetric email encryption
From: Dave U. Random
Date: Sat, 05 Oct 2013 18:10
Date: Sat, 05 Oct 2013 18:10
96 lines
6380 bytes
6380 bytes
> I'm pleased to announce encoDHer, a python utility for symmetric > email encryption using the Diffie-Hellman (DH) shared secret key > protocol for generating a shared secret encryption key. The utility > maintains a database of DH key sets for different fromEmail -> toEmail > routes, encrypts and decrypts files using the AES256 cipher with the > DH shared secret as the encryption key, and provides several > key-management options as well. All encryption/decryption/signing are > performed using the peer-reviewed gnupg package. > The use of the DH shared secret protocol permits users to generate > DH shared secret encryption keys by exchange of DH public keys over > any secure or non-secure medium. For example, DH public keys could > be exchanged via regular unencrypted email. The keys are signed, > assuring that they are not changed in transmission. The DH shared > secret encryption key is determined by mixing of the sender's DH > secret key with the receiver's DH public key. The same DH shared > secret results from mixing the sender's DH secret key with the > receiver's DH public key as results from mixing the receiver's DH > secret key with the sender's DH public key. The DH shared secret > key that results from this mixing is used as a symmetric key to > encrypt communications between sender and receiver. Note that using > the DH protocol, each sender -> receiver route requires its own > key set. All of these keys are kept in the encoDHer keys database. > Further, encoDHer offers perfect forward secrecy (PFS). When the > sender and receiver both destroy their DH secret keys, no one (including > the sender and receiver) can decrypt old messages. encoDHer offers > the ability to systematically mutate keys so it is possible to achieve > PFS with every message exchanged. This process is functionally > identical to using ephemeral DH shared secrets with SSL browser > connections. > Additionally, encoDHer provides the capability to engage in two-way > anonymous communication. In anonymous mode, once sender and receiver > have exchanged and imported DH public keys, when a plaintext message > is symmetrically encrypted, an hsub header is automatically attached > to the file (together with other necessary mail2news headers). The > resultant ciphertext can then be posted to alt.anonymous.messages via > the mixmaster network. The hsub is constructed with a part of the DH > shared secret as the hsub password, so the receiver can locate the > message on a.a.m. encoDHer will search a.a.m and automatically decode > all messages for all routes existing in a user's keys database. No > nymserver or other intermediary is required for this mode of anonymous > two-way communication. > Since exchange of DH public keys can take place over any secure or > non-secure channel, anonymity can be preserved when exchanging keys as > well. For example, Alice could generate a DH secret key for a > alice@localhost -> dummyAddress route, export the corresponding DH public > key signed by alice@localhost (in encoDHer anonymous mode, alice@localhost > is a nom de' plume - email addresses aren't actually used for anything > other than keeping track of routes) and post that DH public key on her > favorite forum. When Bob wants to communicate with Alice, he generates his > own DH secret key for the bob@example.org -> alice@localhost route and > imports Alice's public key into his database. He then exports his own > signed DH public key and forwards that to Alice over any secure or > non-secure channel. Alice changes the dummyAddress associated with > that DH secret key to bob@example.org, imports Bob's DH public key to > her key database, and then the two can have an anonymous, private > conversation by forwarding messages to a.a.m via mixmaster and mail2news. > If Charlie wants to communicate with Alice, he follows the same > procedure as Bob. When Alice receives Charlie's key, she clones the DH > secret key for the alice@localhost -> bob@example.org route, changes > the destination address of the cloned route to Charlie's email address, > imports Charlie's DH public key and forwards her DH public key for that > route to Charlie. Now Alice and Charlie can communicate anonymously and > privately as well. > More documentation for encoDHer is available on github. > Python source code and an executable file can be downloaded from > https://github.com/rxcomm/encoDHer. To install, cd to the encoDHer > directory and execute the command: > sudo python setup.py install > The encodher executable will be installed in /usr/local/bin. > encoDHer also requires the installation of the python-gnupg library > (version 0.3.5 or greater) which is documented at > http://pythonhosted.org/python-gnupg/. Python-gnupg should automatically > install when the encoDHer setup.py is run for most linux variants. If > someone wants only the linux executable, that can be downloaded from > https://github.com/rxcomm/encoDHer/blob/master/encodher using > your favorite browser or wget. In this case, you will need to install > python-gnupg by hand. > In principle, encoDHer should be installable on Windows and MAC/OS. > If someone does that, it would be great if they would post some > instructions. > Bugs shold be reported via the github issues tracker. I am not meaning to impugn this effort, but what purpose would this method have over asymmetric key encryption?
Technical Details
Message-ID:
<a11c36820c6d270426b2220e0460bfb5@anonymitaet-im-inter.net>Path:
mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!illumos!news.pugleaf.net!.TX!i2pn2.pugleaf.net!archive.newsdeef.eu!mbox2nntp-alt.privacy.anon-server.20141023.mbox.gz!border1.nntp.ams.giganews.com!nntp.giganews.com!feeder.erje.net!eu.feeder.erje.net!news2.arglkargh.de!sewer-output!not-for-mailReferences:
<2c63f01b3a2b9d35aa59aabb28c01d28@dizum.com>Show Full Headers
Complete Article Headers
Message-ID: <a11c36820c6d270426b2220e0460bfb5@anonymitaet-im-inter.net> Subject: Re: Announcing encoDHer - a python utility for symmetric email encryption Date: Sat, 05 Oct 2013 18:10:48 +0000 From: Dave U. Random <anonymous@anonymitaet-im-inter.net> References: <2c63f01b3a2b9d35aa59aabb28c01d28@dizum.com> Path: mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!illumos!news.pugleaf.net!.TX!i2pn2.pugleaf.net!archive.newsdeef.eu!mbox2nntp-alt.privacy.anon-server.20141023.mbox.gz!border1.nntp.ams.giganews.com!nntp.giganews.com!feeder.erje.net!eu.feeder.erje.net!news2.arglkargh.de!sewer-output!not-for-mail Newsgroups: alt.privacy.anon-server Organization: dizum.com - The Internet Problem Provider X-Abuse: abuse@dizum.com Injection-Info: sewer.dizum.com - 194.109.206.211 Lines: 95