java - Use "javax.crypto" library in a .JAR file -
at beginning of code of java application, 1 class called decrypt resources (text files , images) using javax.crypto
(these resources encrypted in same way).
in eclipse, application works , resources decrypted. when export runnable .jar file, nothing happens when try launch it. added "jce.jar" library "external jar" in build path, still didn't work.
here imports of "decrypt" class :
import javax.crypto.cipher; import javax.crypto.cipheroutputstream; import javax.crypto.secretkey; import javax.crypto.secretkeyfactory; import javax.crypto.spec.deskeyspec;
i use "proguard" obfuscate jar files, , when launched project, showed :
-warning : library class
javax.security.auth.kerberos.kerberoskey
extends or implements program classjavax.crypto.secretkey
-warning : library class
javax.security.auth.kerberos.keyimpl
extends or implements program classjavax.crypto.secretkey
-warning : there 2 intances of library classes depending on program classes. must avoid such dependencies, since program classes processed, while library classes remain unchanged.
what classes, , how can make runnable jar works ?
edit
okay, think found 1 problem, caused way determine paths of encrypted , decrypted resources. don't know if it's problem have, created post !
(link : paths , url ressources in .jar file)
Comments
Post a Comment