I use this code to try it and I need to get result like this site https://sha512.online/
use IdHash,IdHashSHA;
function TForm1.SHA512(const AString: string): string;
var LSHA512: TIdHashSHA512;
begin
LSHA512 := TIdHashSHA512.Create;
try
Result := LSHA512.HashStringAsHex(AString);
finally
LSHA512.Free;
end;
end;
But it raise an Access Violation error at line LSHA512.HashStringAsHex. Thank you.
You can use one of the following libraries: