Skip to main content
Version: 7.2405.x.x LTS

Verifier class function

FunctionDescriptionSample
nevis.crypto.verifier.new()Instantiates a new verifier object with the given key. The verifier can be used to sign/verify strings with the HMAC-SHA256 given key. The key's length is not limited by the crypto API (it can be 0 to maximum string size). The key is interpreted as an ASCII string (1 byte per character), but it is not limited to ASCIIgiven key. Tor non-ASCII values, use \x01 - \xFF, but note that the key cannot contain \x00. If there is a \x00 character in the key, then the verifier ignores it along with the part that follows it. This is also true for the class' other functions' parameters.local verifier = nevis.crypto.verifier.new("TheKey")