System.Hash.THashSHA2.GetHashBytes
Delphi
class function GetHashBytes(const AData: string; AHashVersion: TSHA2Version = TSHA2Version.SHA256): TBytes; static;
C++
static System::DynamicArray<System::Byte> __fastcall GetHashBytes(const System::UnicodeString AData, TSHA2Version AHashVersion = (TSHA2Version)(0x1));
Properties
Type | Visibility | Source | Unit | Parent |
---|---|---|---|---|
function | public | System.Hash.pas System.Hash.hpp |
System.Hash | THashSHA2 |
Description
Creates a hash digest from the provided String and returns the value of the created digest as bytes.
The optional parameter AHashVersion
lets you specify the SHA2 variant for this hash. Default value is TSHA2Version.SHA256
.