Bun

Symbol

SHA224.constructor

constructor (): SHA224

Referenced types

class SHA224

This class only exists in types

  • readonly static byteLength: 28

    The number of bytes the hash will produce

  • digest(encoding: DigestEncoding): string

    Finalize the hash

    @param encoding

    DigestEncoding to return the hash in. If none is provided, it will return a Uint8Array.

    digest(hashInto?: TypedArray<ArrayBufferLike>): TypedArray

    Finalize the hash

    @param hashInto

    TypedArray to write the hash into. Faster than creating a new one each time

  • Update the hash with data

  • static hash(input: BlobOrStringOrBuffer, hashInto?: TypedArray<ArrayBufferLike>): TypedArray

    Run the hash over the given data

    @param input

    string, Uint8Array, or ArrayBuffer to hash. Uint8Array or ArrayBuffer is faster.

    @param hashInto

    TypedArray to write the hash into. Faster than creating a new one each time

    static hash(input: BlobOrStringOrBuffer, encoding: DigestEncoding): string

    Run the hash over the given data

    @param input

    string, Uint8Array, or ArrayBuffer to hash. Uint8Array or ArrayBuffer is faster.

    @param encoding

    DigestEncoding to return the hash in