System.Hash.THashMD5.GetHMACAsBytes
Delphi
class function GetHMACAsBytes(const AData, AKey: string): TBytes; overload; static;
class function GetHMACAsBytes(const AData: string; const AKey: TBytes): TBytes; overload; static;
class function GetHMACAsBytes(const AData: TBytes; const AKey: string): TBytes; overload; static;
class function GetHMACAsBytes(const AData, AKey: TBytes): TBytes; overload; static;
C++
static System::Sysutils::TBytes __fastcall GetHMACAsBytes(const System::UnicodeString AData, const System::UnicodeString AKey)/* overload */;
static System::Sysutils::TBytes __fastcall GetHMACAsBytes(const System::UnicodeString AData, const System::Sysutils::TBytes AKey)/* overload */;
static System::Sysutils::TBytes __fastcall GetHMACAsBytes(const System::Sysutils::TBytes AData, const System::UnicodeString AKey)/* overload */;
static System::Sysutils::TBytes __fastcall GetHMACAsBytes(const System::Sysutils::TBytes AData, const System::Sysutils::TBytes AKey)/* overload */;
Properties
Type | Visibility | Source | Unit | Parent |
---|---|---|---|---|
function | public | System.Hash.pas System.Hash.hpp |
System.Hash | THashMD5 |
Description
Returns the value of the HMAC-suitable hash digest as bytes.
GetHMACAsBytes accepts the following parameters:
AData
: The source data for hash digest. You may specify this parameter either in String or in TBytes format.AKey
: The secret key. You may specify this parameter either in String or in TBytes format.
For more information on HMAC, see Hash-based message authentication code.