Options
All
  • Public
  • Public/Protected
  • All
Menu

Hierarchy

  • NodeCryptoSha2Hash

Index

Constructors

Properties

Methods

Constructors

constructor

  • new NodeCryptoSha2Hash(createHash: (algorithm: string, options?: HashOptions) => Hash): NodeCryptoSha2Hash
  • Parameters

    • createHash: (algorithm: string, options?: HashOptions) => Hash
        • (algorithm: string, options?: HashOptions): Hash
        • Parameters

          • algorithm: string
          • Optional options: HashOptions

          Returns Hash

    Returns NodeCryptoSha2Hash

Properties

createHash

createHash: (algorithm: string, options?: HashOptions) => Hash

Type declaration

    • (algorithm: string, options?: HashOptions): Hash
    • Parameters

      • algorithm: string
      • Optional options: HashOptions

      Returns Hash

Methods

digest

  • digest(data: Buffer, algorithm?: string): Promise<Buffer>
  • Parameters

    • data: Buffer
    • algorithm: string = 'sha256'

    Returns Promise<Buffer>

Generated using TypeDoc