Skip to main content

Arguments

string
required
Lua string bytes passed to crypto library HashFilter.
"sha256" | "sha1" | "sha224" | "sha384" | "sha512" | "md5" | "sha3-224" | "sha3-256" | "sha3-384" | "sha3-512"
Case-sensitive hash algorithm name. Defaults to sha256.

Returns

string
Lowercase hexadecimal digest with no prefix or separators.

Example

Hash Lua string bytes with the default algorithm or an explicit supported name.