Aliases

None.

Arguments

string
required
The input bytes as a binary-safe Luau string.
string
default:"\"sha384\""
The digest algorithm name. See the supported values under Returns.

Returns

string
The hexadecimal digest of the input bytes.
Supported case-insensitive algorithms: md5, sha1, sha224, sha256, sha384, sha512, sha3-224, sha3-256, sha3-384, sha3-512; SHA3 underscores are also accepted. Unsupported names raise.

Example