verifyMacWithHmacSha256

Verifies this string against a provided HMAC-SHA256 tag and key.

Return

true if this string matches the tag, false otherwise.

Parameters

tag

The expected HMAC tag to compare against.

key

The key used to generate the HMAC tag.


Verifies an input string against this HMAC-SHA256 tag and the provided key.

Return

true if the input matches this tag, false otherwise.

Parameters

unhashed

The input string to verify.

key

The key used to generate this HMAC tag.