In case you see this exception while using Java encryption functionality:
Caused by: org.jasypt.exceptions.EncryptionOperationNotPossibleException: Encryption raised an exception. A possible cause is you are using strong encryption algorithms and you have not installed the Java Cryptography Extension (JCE) Unlimited Strength Jurisdiction Policy Files in this Java Virtual Machine
Install Java Cryptography Extension (JCE) Unlimited Strength Jurisdiction Policy Files in the Java Virtual Machine to resolve it:
1. Download the JCE Policy jar files from the below location:
1. Download the JCE Policy jar files from the below location:
2. The zip file would contain two jar files (local_policy.jar and US_export_policy.jar) and README.
3. These jar files need to be replace the same under the following location (create a backup of the original 2 files):
$JAVA_HOME/jre/lib/security
No comments:
Post a Comment