TIEHashStream.EncryptString
Declaration
function EncryptString(const Text: string; const Password: AnsiString): AnsiString;
Description
Encrypt a string with the given password and return as a Base64 string.
var
hs: TIEHashStream;
begin
hs := TIEHashStream.Create( iehaSHA256, False );
try
EncryptedText := hs.EncryptString( Text, 'My Password' );
finally
hs.Free();
end;
end;
See Also
◼IEEncryptString
◼DecryptString
◼Encrypt
◼Decrypt