@types/pbkdf2
TypeScript icon, indicating that this package has built-in type declarations

3.1.2 • Public • Published

Installation

npm install --save @types/pbkdf2

Summary

This package contains type definitions for pbkdf2 (https://github.com/crypto-browserify/pbkdf2).

Details

Files were exported from https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/pbkdf2.

index.d.ts

/// <reference types="node" />

// No need to export this
type TypedArray =
    | Int8Array
    | Uint8Array
    | Uint8ClampedArray
    | Int16Array
    | Uint16Array
    | Int32Array
    | Uint32Array
    | Float32Array
    | Float64Array;
export function pbkdf2(
    password: string | Buffer | TypedArray | DataView,
    salt: string | Buffer | TypedArray | DataView,
    iterations: number,
    keylen: number,
    callback: (err: Error, derivedKey: Buffer) => void,
): void;
export function pbkdf2(
    password: string | Buffer | TypedArray | DataView,
    salt: string | Buffer | TypedArray | DataView,
    iterations: number,
    keylen: number,
    digest: string,
    callback: (err: Error, derivedKey: Buffer) => void,
): void;
export function pbkdf2Sync(
    password: string | Buffer | TypedArray | DataView,
    salt: string | Buffer | TypedArray | DataView,
    iterations: number,
    keylen: number,
    digest?: string,
): Buffer;

export {};

Additional Details

  • Last updated: Tue, 07 Nov 2023 09:09:39 GMT
  • Dependencies: @types/node

Credits

These definitions were written by Timon Engelke.

Readme

Keywords

none

Package Sidebar

Install

npm i @types/pbkdf2

Weekly Downloads

569,204

Version

3.1.2

License

MIT

Unpacked Size

4.52 kB

Total Files

5

Last publish

Collaborators

  • types