Crypto Lib
    Preparing search index...

    Interface HashOptions

    Options for computing a cryptographic hash.

    interface HashOptions {
        algorithm:
            | "sha256"
            | "sha384"
            | "sha512"
            | "sha3-256"
            | "sha3-512"
            | "blake2b"
            | "blake3";
        data: string
        | Uint8Array<ArrayBufferLike>;
    }
    Index
    algorithm:
        | "sha256"
        | "sha384"
        | "sha512"
        | "sha3-256"
        | "sha3-512"
        | "blake2b"
        | "blake3"

    Algorithm to use.

    data: string | Uint8Array<ArrayBufferLike>

    Data to hash (UTF-8 string or bytes).