I would like to store an encrypted password in a Java file. I saw at a solution using javax.crypto, but the problem with that was that the key was being ge
KeyGenerator is used to generate keys
KeyGenerator
You may want to check KeySpec, SecretKey and SecretKeyFactory classes
KeySpec
SecretKey
SecretKeyFactory
http://docs.oracle.com/javase/1.5.0/docs/api/javax/crypto/spec/package-summary.html