I am wondering how I can load a byte array into a memory URLClassLoader?
The byte array is the decrypted bytes of a jar file (as seen below)!
Most of the memory class loaders are using ClassLoader and not URLClassLoader!
I need it to be using URLClassLoader.
byte[] fileB = Util.crypt.getFileBytes(inputFile);
byte[] dec;
dec = Util.crypt.decrypt(fileB, "16LENGTHLONGKEYX".getBytes());
//Load bytes into memory and load a class here?
Thanks!
I will post here a implementation I had done in the past:
My Custom ClassLoader: