title: How can you protect/encrypt your Java classes?
body: <p>Some time ago, in my work I needed to protect some classes against other people to read the code. For that purpose, I created a EncryptedClassLoader, that loaded previously encrypted classes, and can load normal (not encrypted) classes as well.
  Working in that way was a little complicated, and testing too (compile, then encrypt, and then decrypt).</p>
  
  <p>Is there any free framework to do what I needed, and is easy to handle? I mean, not only obfuscate, but also encrypt the files, so none can read or debug that part of code. It would also be great that I can change the keys for encryption easily (in my application, it was hardcoded).</p>
  
  <p>Thanks in advance.</p>