EliteAndroidApps / WhatsApp-Crypt12-Decrypter

Decrypts WhatsApp msgstore.db.crypt12 files.
GNU General Public License v3.0
235 stars 105 forks source link

java.security.InvalidKeyException: Illegal key size #3

Closed jdmendez closed 7 years ago

jdmendez commented 7 years ago

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.

EliteAndroidApps commented 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/