Hello, I have been working on a p2p program that would send files from one user to another, and I need to encrypt the files before they're sent. Normally I would just use a password system, but this program has special requirements. Sense the receiver could be anyone (your friend, family, co-worker, nagging in law, etc.) I needed a way to set up an encryption key without the receiver needing to remember a password. So I looked up the Diffy-Hellman key exchange, and I was impressed!
Sadly, I can't make the mathematics work for me :/ I have spent a few days searching the internet for some source code or article, but nothing.
So after the bit of research I did, I believe I need two things: 1) A class that can hold the large numbers (something bigger than integer), and 2) The actual algorithms of the Diffy-Hellman key exchange.
Any and all help is much appreciated!