Delphi DLL
Delphi DLL
Example: SecureString.HashVal method
Demonstrates theHashVal method.
Chilkat Delphi DLL Downloads
uses
Winapi.Windows, Winapi.Messages, System.SysUtils, System.Variants, System.Classes, Vcl.Graphics,
Vcl.Controls, Vcl.Forms, Vcl.Dialogs, Vcl.StdCtrls, SecureString;
...
procedure TForm1.Button1Click(Sender: TObject);
var
success: Boolean;
str: HCkSecureString;
encodedHash: PWideChar;
begin
success := False;
str := CkSecureString_Create();
CkSecureString_putMaintainHash(str,'sha256');
CkSecureString_Append(str,'Hello World');
encodedHash := CkSecureString__hashVal(str,'base64');
Memo1.Lines.Add(encodedHash);
CkSecureString_Dispose(str);
end;