If I understood correctly, You want to encrypt emails using a public key in Java, isn't it?
Joined: Sep 21, 2006
Srikanth Nutigattu wrote:If I understood correctly, You want to encrypt emails using a public key in Java, isn't it?
Right. Assume server can get user's public keys from some sort of back-end. In theory, then, all I need is to generate a server side key pair, provide the user with access to the server public key and then encrypt using the server private key and user public key. Send and then the user decrypts with provided server public key and their mown private key.
I'm finding that not many do this. In fact, the most commonly used library seems to be BouncyCastle rather than Java security.
Joined: Oct 30, 2007
I think the JCA/JCE (Java Cryptographic Extension) deals with the issue.
Actually, I've been all up and down this and can't find a way that is compatible with 90% of enterprise mail clients. In other words Outlook / Exchange. Kinda pointless if you don't support what most people use.