sha384

Computes the SHA-2-382 hash of a value.

Syntax

sha384(value, outputFormat?)

Parameters

Return value

A hex string or a Uint8Array representing the hash digest.

Example

sha384("hello")
"59e1748777448c69de6b800d7a33bbfb9ff1b463e44354c3553bcdb9c666fa90125a3c79f90397bdf5f6a13de828684f"
sha384("hello", "bytes")
Uint8Array [89, 225, 116, 135, 119, 68, 140, 105, 222, 107, 128, 13, 122, 51, 187, 251, 159, 241, 180, 99, 228, 67, 84, 195, 85, 59, 205, 185, 198, 102, 250, 144, 18, 90, 60, 121, 249, 3, 151, 189, 245, 246, 161, 61, 232, 40, 104, 79]
sha384(new Uint8Array([1,2,3]))
"86229dc6d2ffbeac7380744154aa700291c064352a0dbdc77b9ed3f2c8e1dac4dc325867d39ddff1d2629b7a393d47f6"

See also