Anyone knows how to generate key from a plain-text password? I mean a secure Key derivation function with salt.
ie.
function KeyDerivationProc(APassword : String) : String;
begin
// ...
end;
I’m using Delphi (2010). I thought about DCPcrypt2 and OpenPGPBlackbox, but I’m really lost here.
Any help would be greatly appreciated, thanks!
For PBKDF2, which is more or less the standard, you can only get the Chilkat libs it seems:
http://www.example-code.com/delphi/crypt2_pbkdf2.asp
So you might be better off looking at bcrypt, for which an implementation is on this spectacular site, and if you search for it, a few others as well.