Options
All
  • Public
  • Public/Protected
  • All
Menu

Class Sha1Hash

Object that allows for continuous SHA1 hashing of data.

Hierarchy

  • Hash
    • Sha1Hash

Index

Constructors

Methods

Constructors

constructor

  • Returns Sha1Hash

Methods

finalize

  • finalize(truncate_to?: undefined | number): DataView
  • Completes the hash computation and returns the final hash digest.

    Parameters

    • Optional truncate_to: undefined | number

      The maximum number of bytes to receive. Leave as undefined or 0 to receive the entire digest.

    Returns DataView

update

  • Hash additional data.

    Parameters

    • data: Hashable

      Additional data to hash

    Returns void

Generated using TypeDoc