AES key may be generate by this code
KeyGenerator kgen = KeyGenerator.getInstance(\"AES\"); kgen.init(128);
but
If I have a \"very re
You can add a random algorithm using SecureRandom :
KeyGenerator keyGen = KeyGenerator.getInstance("AES"); SecureRandom random = new SecureRandom(); // cryptograph. secure random keyGen.init(random); SecretKey secretKey = keyGen.generateKey();