Thread View: alt.privacy.anon-server
3 messages
3 total messages
Started by Nomen Nescio
Sat, 05 Oct 2013 15:50
Announcing encoDHer - a python utility for symmetric email encryption
Author: Nomen Nescio
Date: Sat, 05 Oct 2013 15:50
Date: Sat, 05 Oct 2013 15:50
93 lines
6020 bytes
6020 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.
Re: Announcing encoDHer - a python utility for symmetric email encryption
Author: 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?
Re: Announcing encoDHer - a python utility for symmetric email encryption
Author: Nomen Nescio
Date: Sat, 05 Oct 2013 22:35
Date: Sat, 05 Oct 2013 22:35
24 lines
1837 bytes
1837 bytes
> I am not meaning to impugn this effort, but what purpose would > this method have over asymmetric key encryption? Excellent question! There are two parts to the answer: 1) Less important answer - some people think public-key encryption has been or is in danger of being compromised. Symmetric encryption provides an alternative that doesn't suffer from the vulnerabilities to recent advances in crypto mathematics. 2) More important answer - it is far easier to generate symmetric keys. So it is far easier to maintain perfect forward secrecy with symmetric encryption than it is with public-key encryption. Using encoDHer, keys can be changed as often as the users desire, including key changes with every message. If the old keys are destroyed, no one (including the author and recipient of the message) can read the old messages. In the SSL world, this process of using a new key for every session is called ephemeral Diffie Hellman.
Thread Navigation
This is a paginated view of messages in the thread with full content displayed inline.
Messages are displayed in chronological order, with the original post highlighted in green.
Use pagination controls to navigate through all messages in large threads.
Back to All Threads