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.
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.