public class Hmac extends Mac:
import klyn.cryptography
mac = Hmac(SHA256())
mac.init("secret")
print(mac.doFinal("hello").hex)| Modifier and Type | Member | Description |
|---|---|---|
| public | HmacHmac() throws CryptoException: |
Creates an HMAC using `SHA256`. |
| public | HmacHmac(hash as Object) throws CryptoException: |
Creates an HMAC bound to the given digest algorithm. |