B4J Question RSA Encryption and .cert file

mauro vicamini

Active Member
Licensed User
Longtime User
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.
 
Cookies are required to use this site. You must accept them to continue using the site. Learn more…