Gorhin Stroebel
Gorhin Stroebel

Reputation: 149

How to hash a password in TMS WEB Core?

I am trying to use the TWebSHAHash from my website using Delphi. I tried using what is on the documentation: https://download.tmssoftware.com/doc/tmswebcore/components/twebshahash/, but it won't work.

[Error] UserSignUp.pas(509): identifier not found "TSHAHash"

My code is exactly like in that example from the website:

procedure TForm1.WebButton1Click(Sender: TObject); async;
var
  sha: TWebSHAHash;
  s: string;
begin
  sha := TWebSHAHash.Create(ehSHA1);
  s := Await(string, sha.Hash('text to be hashed'));
  WebMemo1.Lines.Add(s);
end;

Upvotes: 2

Views: 186

Answers (0)

Related Questions