title: Password to key function compatible with OpenSSL commands?
body: <p>For example, the command:</p>
  
  <pre><code>openssl enc -aes-256-cbc -a -in test.txt -k pinkrhino -nosalt -p -out openssl_output.txt
  </code></pre>
  
  <p>outputs something like:</p>
  
  <pre><code>key = 33D890D33F91D52FC9B405A0DDA65336C3C4B557A3D79FE69AB674BE82C5C3D2
  iv  = 677C95C475C0E057B739750748608A49
  </code></pre>
  
  <p>How is that key generated? (C code as an answer would be too awesome to ask for :) )
  Also, how is the iv generated? </p>
  
  <p>Looks like some kind of hex to me.</p>