Hi everyone,
I need to encrypt some strings using RSA algorithm. What I don't understand is how to pass the .cert file that I got as Public Key to the Encrypt Function. The type for the key is java.security.Key and I don't know how to convert the .cert file provided to me to that data type.
See my example in my signature (I use the public and the private key directly). The public key has to be converted (padding). After that you can load it.
See my example in my signature (I use the public and the private key directly). The public key has to be converted (padding). After that you can load it.