Closed jdmendez closed 7 years ago
This is because you do not have unlimited strength jurisdiction policy files installed.
Install one of the following:
Java 6 Cryptography Extension (JCE) Unlimited Strength Jurisdiction Policy Files Java 7 Cryptography Extension (JCE) Unlimited Strength Jurisdiction Policy Files Java 8 Cryptography Extension (JCE) Unlimited Strength Jurisdiction Policy Files
Extract them to: ${java.home}/jre/lib/security/
Error while decrypting Android-derived whatsap crypt12 file, on Windows 7 (CMD.exe prompt java -jar decrypt12.jar)
Exception in thread "main" java.lang.reflect.InvocationTargetException at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source) at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source) at java.lang.reflect.Method.invoke(Unknown Source) at org.eclipse.jdt.internal.jarinjarloader.JarRsrcLoader.main(JarRsrcLoa der.java:58) Caused by: java.security.InvalidKeyException: Illegal key size at javax.crypto.Cipher.checkCryptoPerm(Cipher.java:1039) at javax.crypto.Cipher.init(Cipher.java:1393) at javax.crypto.Cipher.init(Cipher.java:1327) at decrypt12.decrypt12.decrypt(decrypt12.java:94) at decrypt12.decrypt12.main(decrypt12.java:146) ... 5 more
It seems java is not formating the KeyFile Content properly.