System.Hash.THash.DigestAsStringGUID
Delphi
class function DigestAsStringGUID(const ADigest: TBytes): string; static;
C++
static System::UnicodeString __fastcall DigestAsStringGUID(const System::DynamicArray<System::Byte> ADigest);
Properties
Type | Visibility | Source | Unit | Parent |
---|---|---|---|---|
function | public | System.Hash.pas System.Hash.hpp |
System.Hash | THash |
Description
Converts the provided hash digest into a GUID String and returns that String.
The expected length of the provided digest is 16. DigestAsStringGUID calls TGuidHelper.Create. If the length of the provided digest is not 16, the following happens:
- If the length is more than 16, TGuidHelper.Create only uses the first 16 bytes and ignores the rest.
- If the length is less than 16, TGuidHelper.Create raises the following exception:
Exception | Exception.Message | Scenarios |
---|---|---|
Byte array for GUID must be exactly <16> bytes long |
|