AES key may be generate by this code
KeyGenerator kgen = KeyGenerator.getInstance(\"AES\");
kgen.init(128);
but
If I have a \"very re
It sounds like you're trying to generate an AES key based on a password.
If this is the case, you can use javax.crypto.SecretKeyFactory's generateSecret method, passing in a javax.crypto.spec.PBEKeySpec as the parameter. The PBEKeySpec allows to to specify the password as an argument to its constructor.