use bouncy castle libraries to encrypt files using public key from digital certificate
Posted
by mike
on Stack Overflow
See other posts from Stack Overflow
or by mike
Published on 2010-02-15T15:21:18Z
Indexed on
2010/04/11
22:43 UTC
Read the original article
Hit count: 638
I got the public key from the certificate, keypair is a java.security.KeyPair object
String public_key = keypair.getPublic().toString();
I want to send this to the via an http connection to a J2me application.
I cannot find any documentation to convert the transmitted string to a Public key that can be used to encrypt Strings.
I also want the J2me to verify signed strings from the server.
I want to then send the encrypted strings back to the server.
© Stack Overflow or respective owner