Skip to Main Content

Java Security

Announcement

For appeals, questions and feedback about Oracle Forums, please email oracle-forums-moderators_us@oracle.com. Technical questions should be asked in the appropriate category. Thank you!

RSA and PCKS1Padding

973297Nov 8 2012 — edited Nov 9 2012
Hi,

I was advised by a security auditor couple of months ago, to use PKCS1Padding when using RSA.
So I did find RSA/ECB/PKCS1Padding but I quickly realized from browsing around that it was better to use RSA/ECB/OAEPWithSHA1AndMGF1Padding instead.
Do you guys confirm?

Further, I was reading that the ECB mode was very weak. I am not sure which one I could replace it with RSA and OAEPWithSHA1AndMGF1Padding.
Thank you,

Can you please advise,
Thank you.
Elextra--
This post has been answered by sabre150 on Nov 9 2012
Jump to Answer
Comments
Locked Post
New comments cannot be posted to this locked post.
Post Details
Locked on Dec 7 2012
Added on Nov 8 2012
4 comments
4,942 views