This code to make encrypte using AES
i want to edit my code to get the kgen from the user to use it when decrypte the file

Java Code:
        
                        KeyGenerator	kgen	=	KeyGenerator.getInstance("AES");
			kgen.init(128);                        
			SecretKey key  = kgen.generateKey() ;
			AESEncrypter encrypter = new AESEncrypter(key);
			encrypter.encrypt(new FileInputStream(file),new FileOutputStream(file));
please help !!!!:(