Options
All
  • Public
  • Public/Protected
  • All
Menu

Class NodeCryptoSha2Hash

Hierarchy

  • NodeCryptoSha2Hash

Index

Constructors

Properties

Methods

Constructors

  • 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: ((algorithm: string, options?: HashOptions) => Hash)

Type declaration

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

      • algorithm: string
      • Optional options: HashOptions

      Returns Hash

Methods

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

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

    Returns Promise<Buffer>

Generated using TypeDoc