file: codec.aus

class: Digest

[181:14] (extern: com.lehman.aussom.stdlib.AussomDigest) extends: object

Streaming digest object backed by java.security.MessageDigest. Use this when input arrives in chunks; for one-shot digests prefer the static codec helpers. After digest() the underlying state resets so the same object can be reused.

Methods

class: Hmac

[235:14] (extern: com.lehman.aussom.stdlib.AussomHmac) extends: object

Streaming HMAC object backed by javax.crypto.Mac. The key is supplied to the constructor and retained, so digest() can be called repeatedly under the same key on fresh data.

Methods

class: codec

[29:21] static (extern: com.lehman.aussom.stdlib.AussomCodec) extends: object

The static codec class provides one-shot SHA / MD5 digest and HMAC-SHA functions over strings, Buffer payloads, and files. Digests are returned as raw Buffer objects; pipe through hex.encode(...) or base64.encode(...) for text output. For chunked input use the Digest and Hmac extern classes.

Methods