title: Key derivation function in Delphi 2010
body: <p>Anyone knows how to generate key from a plain-text password? I mean a secure Key derivation function with salt.</p>
  
  <p>ie.</p>
  
  <pre><code>function KeyDerivationProc(APassword : String) : String;
  begin
       // ...
  end;
  </code></pre>
  
  <p>I'm using Delphi (2010). I thought about DCPcrypt2 and OpenPGPBlackbox, but I'm really lost here.</p>
  
  <p><strong>Any help</strong> would be greatly appreciated, thanks!</p>