I want to create an application that encrypts messages for the server with the public key of the server. I thought to use KeyCzar, but if you have better or other good ideas, I will be glad to hear.
My questions:
- The application has to save the public key. Where should I store it?
- How can I encrypt messages with this public key? I didn't find asymmetric encryption functions. (The application will encrypt symmetric key, and the data will be encrypted by the symmetric key)
By the way, I must use public key, because messages from the same sender should not be linked by the recipient.
References and examples to such a hybrid encryption, or even just to the use of public key encryption scheme (using KeyCzar or other recommended tools), will be appreciated.