title: random secret key generator using fixed seed java
body: <p>I want to generate a secret key (128 bit) based upon some predefined seed value . </p>
  
  <p>Currently i am using javax.crypto.KeyGenerator (AES) to generate key using secureRandom . </p>
  
  <p>How can i pass my own seen rather than using secureRandom object . </p>
  
  <p>code i am currently using : </p>
  
  <p>// </p>
  
  <pre><code>KeyGenerator kgen = KeyGenerator.getInstance("AES");
  kgen.init(128,SecureRandom random); // 128 bits key size
  key = kgen.generateKey();
  </code></pre>
  
  <p>//</p>
  
  <p>Thank You ..</p>