verifier:sign(data) | This method returns the given data followed by the hashed value (separated by an underscore). | local signedValue = verifier:sign("TheTextToSign") |
verifier:verify(signedValue) | This method expects a value signed with the verifier's method "sign". If the signature matches, the method will return the data (without the signature). If the signature does not match, the method returns nil. | local verifiedData = verifier:verify(signedValue) |
verifier:createTag(data) | This method returns the signature (tag) for the given data. The tag can be used to verify a given value via the method verifier:verifyTag(). | local tag = verifier:createTag("TheText") |
verifier:verifyTag(data, tag) | This methods returns - "true", if the data matches the given tag, and - "false", if it does not match. | local result = verifier:verifyTag("TheText", tag) |