verify

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

Return

true if the input matches the tag, false otherwise.

Parameters

input

The input string to verify.

tag

The expected HMAC tag to compare against.

key

The key used to generate the HMAC tag.