Functions that deal with public key crypto?
Okeydokey, Im not a big cryptography fan, as im a firm believer that if somebody wants your data, they are going to get it no matter what you do with it, however recently I have found it necessary (been ordered to) start integration of basic public/private key pair cryptographic coding. I understand this stuff in theory, but what i really need is some working, portable, easy to understand, key generation and interaction code. Yes, before you go screaming stfw, rtfm, or any of that good stuff, know that yes, i have, and it wasnt good enough. I want to know how keys of varying length are created, and how they are used. Basically what im looking for are 3 functions. GenerateKeyPair, EncryptUsingMyPrivateKey, DecryptUsingTheOtherGuysPublicKey. There are about a million tutorials on how to set up key based crypto for various services, clients, and pre-created libs, but what i want to see is simple example code behind it. Thanks for your time.