public doFinal(text as String = null) as Digest throws CryptoException:
Computes the MAC for the buffered text and an optional final chunk.
| Parameter | Description |
|---|---|
text | Optional final UTF-8 chunk. |
Structured MAC result.
import klyn.cryptography
mac = Hmac(SHA256())
mac.init("secret")
digest = mac.doFinal("hello")
print(digest.hex)