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!

JCE & AES encryption

843811Aug 2 2005 — edited Aug 3 2006
hai,
The following code is running in jdk1.4 in windows platform,

Security.addProvider(new org.bouncycastle.jce.provider.BouncyCastleProvider());
Cipher cipher = Cipher.getInstance("AES/CBC/PKCS5Padding");

but if i try it in jdk1.5 in linux platform i am getting the following error
"Cannot find any provider supporting AES/CBC/PKCS5Padding"

help me to rectify this error
thanks in advance
Comments
Locked Post
New comments cannot be posted to this locked post.
Post Details
Locked on Aug 31 2006
Added on Aug 2 2005
6 comments
1,479 views