简体   繁体   English

相当于Java的RSA_PKCS1_OAEP_PADDING

[英]RSA_PKCS1_OAEP_PADDING equivalent for Java

Currently i use the encryption instance in Java like this: 目前,我在Java中使用加密实例是这样的:

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

But i cannot decrypt my encrypted message in OpenSSL where i want to use RSA_PKCS1_OAEP_PADDING. 但是我无法在要使用RSA_PKCS1_OAEP_PADDING的OpenSSL中解密我的加密消息。 What do i need to add to the "RSA" to be able to use the RSA_PKCS1_OAEP_PADDING? 我需要添加到"RSA"中才能使用RSA_PKCS1_OAEP_PADDING?

Please help 请帮忙

Have you tried using "RSA/NONE/OAEPPadding" in getInstance() ? 您是否尝试在getInstance()使用“ RSA / NONE / OAEPPadding”?

Otherwise, take a look at Java Cryptography Architecture Standard Algorithm Name Documentation to find a list of possible parameters. 否则,请查看Java密码学体系结构标准算法名称文档以找到可能的参数列表。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

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