M mauro vicamini Active Member Licensed User Longtime User Nov 27, 2015 #1 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. Any help is usefull. Thanks for the attention.
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. Any help is usefull. Thanks for the attention.
KMatle Expert Licensed User Longtime User Nov 29, 2015 #2 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. Upvote 0
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.
M mauro vicamini Active Member Licensed User Longtime User Nov 30, 2015 #3 KMatle said: 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. Click to expand... Thanks a lot!! Upvote 0
KMatle said: 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. Click to expand... Thanks a lot!!