On this page

Type:string

The context directory for creating names.

Type:"ascii" | "utf8" | "utf-8" | "utf16le" | "utf-16le" | "ucs2" | "ucs-2" | "base64" | "base64url" | "latin1" | "binary" | "hex"

The encoding to use when generating the hash, defaults to 'base64'. All encodings from Node.JS' hash.digest are supported.

Type:number

The prefix length of the hash digest to use, defaults to 4.

Type:string | typeof Hash

The hashing algorithm to use, defaults to 'md4'. All functions from Node.JS' crypto.createHash are supported.