method

MD5.update

): MD5;

Update the hash with data

@param data

Data to add to the hash

Referenced types

type BlobOrStringOrBuffer =
| string
| NodeJS.TypedArray
| ArrayBufferLike

class MD5

This class only exists in types

  • readonly static byteLength: 16

    The number of bytes the hash produces

  • encoding: DigestEncoding
    ): string;

    Finalize the hash

    @param encoding

    DigestEncoding to return the hash in. If none is provided, the hash is returned as a Uint8Array

    hashInto?: TypedArray<ArrayBufferLike>
    ): TypedArray;

    Finalize the hash

    @param hashInto

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

  • ): MD5;

    Update the hash with data

    @param data

    Data to add to the hash

  • static hash(
    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(
    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