title: sha1 encryption with passPhrase ,saltValue,passwordIterations,initVector,keySize
body: <p>I'm developing java application and I was asked to generate secure code using following information.</p>
  
  <pre><code>Value to be encrypted ="test1234";
  
  passPhrase = "testValue"
  saltValue  = "testValue"
  hashAlgorithm = "SHA1"
  passwordIterations = 2
  initVector = "testValue"
  keySize = 256
  </code></pre>
  
  <p>Could some one kindly let me know what is the approach to generate hash value using SHA1 algorithm based on above mention values.</p>