Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Unable to decrypt in java #184

Open
agsha opened this issue May 28, 2019 · 0 comments
Open

Unable to decrypt in java #184

agsha opened this issue May 28, 2019 · 0 comments

Comments

@agsha
Copy link

agsha commented May 28, 2019

What is the Cipher transformation string to be used while decrypting RSA in java?
I assume the default for ursa is RSA_PKCS1_OAEP_PADDING but I am not able to decrypt it in java. I am using BouncyCastle.
I have tried the following and none of it works

RSA/ECB/NoPadding
RSA/ECB/OAEPPadding
RSA/ECB/OAEPWithSHA-1AndMGF1Padding
RSA/ECB/OAEPWithSHA-224AndMGF1Padding
RSA/ECB/OAEPWithSHA-256AndMGF1Padding
RSA/ECB/OAEPWithSHA-384AndMGF1Padding
RSA/ECB/OAEPWithSHA-512AndMGF1Padding
RSA/ECB/PKCS1Padding

I also tried with Mode None. It doesnt work

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant