uses IdHashSHA;
...
var
pSHA : TIdHashSHA1;
begin
pSHA := TIdHashSHA1.Create;
try
ShowMessage( 'abc = ' + pSHA.HashStringAsHex( 'abc' ) + #13 +
'abc = ' + pSHA.HashStringAsHex( 'abc' ) + #13 +
'abd = ' + pSHA.HashStringAsHex( 'abd' ) );
finally
pSHA.Free;
end;
Output: Microsoft AX 2012, X++, C#, SQL server, SSRS, Java, JavaFX, Oracle, PL/SQL, Delphi - codes examples, step-by-step tutorials, experiences.
Monday, March 19, 2018
DELPHI - How get hash value for string (SHA-1 fingerprint)
Hash function returns same value for same string. This uses SHA-1 (Secure Hash Algorithm) algorithm.
Subscribe to:
Post Comments (Atom)

No comments:
Post a Comment