Documents for @litert/signatures
    Preparing search index...

    Interface IHasher

    The hasher interface.

    interface IHasher {
        algorithm: string;
        hash(message: string | Buffer<ArrayBufferLike>): Buffer;
        hashStream(message: Readable): Promise<Buffer<ArrayBufferLike>>;
    }
    Index

    Properties

    Methods

    Properties

    algorithm: string

    The digest hash algorithm of this hasher.

    Methods

    • Calculate the hash of simple short data.

      Parameters

      • message: string | Buffer<ArrayBufferLike>

        The payload to be processed.

      Returns Buffer

    • Calculate the hash of data insides stream.

      Parameters

      • message: Readable

        The payload to be processed.

      Returns Promise<Buffer<ArrayBufferLike>>