简体   繁体   中英

RSA_PKCS1_OAEP_PADDING equivalent for Java

Currently i use the encryption instance in Java like this:

Cipher cipher = Cipher.getInstance("RSA");

But i cannot decrypt my encrypted message in OpenSSL where i want to use RSA_PKCS1_OAEP_PADDING. What do i need to add to the "RSA" to be able to use the RSA_PKCS1_OAEP_PADDING?

Please help

Have you tried using "RSA/NONE/OAEPPadding" in getInstance() ?

Otherwise, take a look at Java Cryptography Architecture Standard Algorithm Name Documentation to find a list of possible parameters.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM