This week's book giveaway is in the OCAJP 8 forum. We're giving away four copies of OCA Java SE 8 Programmer I Study Guide and have Edward Finegan & Robert Liguori on-line! See this thread for details.
I have no real experience with anything about encryption and using ciphers with Java. I know how to program in Java, just never needed to use encryption until now.
What I am trying to do, is I distribute a class that will download a loader. This loader will present a gui with a username & password login (with authentication to a remote webserver). Upon correct details, a gui will show with a list of available plugins. The user selects a plugin, clicks ok or whatever, then the plugin (an encrypted jar file) will be downloaded from a remote webserver, de-encrypted, and then loaded into the application.
I don't really know if this is understandable as I've never had to do something like this before. Basically I'm just trying to protect the class from being decompiled as easily and freely distributed (as not everyone should be able to have access to every plugin, but I'll handle that stuff after I figure out a base for this). I've talked to one person about this so far, but they weren't too much help. They told me to look into class loaders and AES encrypted classes.
If someone here could point me in the right direction, give me some hints, or names of ebooks or something I would be very grateful!
In some other post on these forums a person suggested "Beginning Cryptography with Java" by David Hook. Luckily the library had it and I am now reading it