public verify(text as String, expected as String, expectedEncoding as String = "hex") as Boolean throws CryptoException:
import klyn.cryptography
mac = Hmac(SHA256())
mac.init("secret")
digest = mac.doFinal("hello")
print(mac.verify("hello", digest.hex))