sha384()
Generates a SHA-384 hash.
Definition
function sha384(data: ArrayBuffer | TypedArray): Promise<ArrayBuffer>;
Parameters
data
Example
import { sha384 } from "oslo/crypto";
import { encodeHex } from "oslo/encoding";
const data = new TextEncoder().encode("hello, world");
const hash = await sha384(data);
const hexHash = encodeHex(hash);