In standalone the Provider was "SunJCE" but in TomEE it was bouncy castle. 
Now I am passing the Provider in the getInstance of Cipher.

It looks to be working after the changes.

 Cipher cipher = Cipher.getInstance("AES/CBC/PKCS5Padding","SunJCE");



--
View this message in context: 
http://tomee-openejb.979440.n4.nabble.com/RSA-encryption-does-not-looks-to-be-working-tp4680268p4680285.html
Sent from the TomEE Users mailing list archive at Nabble.com.

Reply via email to