System.Hash.THashMD5.GetHMACAsBytes

From Appmethod Libraries
Jump to: navigation, search

Object Pascal

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::DynamicArray<System::Byte> __fastcall GetHMACAsBytes(const System::UnicodeString AData, const System::UnicodeString AKey)/* overload */;
static System::DynamicArray<System::Byte> __fastcall GetHMACAsBytes(const System::UnicodeString AData, const System::DynamicArray<System::Byte> AKey)/* overload */;
static System::DynamicArray<System::Byte> __fastcall GetHMACAsBytes(const System::DynamicArray<System::Byte> AData, const System::UnicodeString AKey)/* overload */;
static System::DynamicArray<System::Byte> __fastcall GetHMACAsBytes(const System::DynamicArray<System::Byte> AData, const System::DynamicArray<System::Byte> 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.

See Also