System.Hash.THashSHA1.GetHashBytes
Delphi
class function GetHashBytes(const AData: string): TBytes; overload; static;
class function GetHashBytes(const AStream: TStream): TBytes; overload; static;
C++
static System::DynamicArray<System::Byte> __fastcall GetHashBytes(const System::UnicodeString AData)/* overload */;
static System::DynamicArray<System::Byte> __fastcall GetHashBytes(System::Classes::TStream* const AStream)/* overload */;
Properties
Type | Visibility | Source | Unit | Parent |
---|---|---|---|---|
function | public | System.Hash.pas System.Hash.hpp |
System.Hash | THashSHA1 |
Description
Creates a hash digest from the specified input value and returns the value of the created digest as bytes.
GetHashBytes accepts one of the following as the input value:
AData
: A string.AStream
: A stream.