Loading

How to find Java Cryptography Extension (JCE) is indeed working

Fecha de publicación: Aug 4, 2025
Tarea

GOAL

Find out whether Java Cryptography Extension (JCE) Unlimited Strength Jurisdiction Policy Files are working. 

Pasos

This could be easily verified by running the following command in your terminal or command window:

Unix OS:

jrunscript -e 'exit (println(javax.crypto.Cipher.getMaxAllowedKeyLength("AES") >= 256));'
Windows OS:
jrunscript -e "exit (println(javax.crypto.Cipher.getMaxAllowedKeyLength(\"AES\") >= 256));"

The output of this command will print true if JCE policy files have been applied and false if not. If the output is false then follow the instructions on the solution provided in this Knowledge Base article.

Note: The command jrunscript is bundled in the JDK. If you have installed only JRE, then you won't have access to this command. 
Número del artículo de conocimiento

001114757

 
Cargando
Salesforce Help | Article