Dart API Referencedart:cryptoHMAC

HMAC Interface

Hash-based Message Authentication Code support.

The update method is used to add data to the message. The digest method is used to extract the message authentication code.

Constructors

Code new HMAC(Hash hash, List<int> key) #

Create an HMAC object from a Hash and a key.

HMAC(Hash hash, List<int> key);

Methods

Code List<int> digest() #

Perform the actual computation and extract the message digest as a list of bytes.

List<int> digest();

Code HMAC update(List<int> data) #

Add a list of bytes to the message.

HMAC update(List<int> data);