Skip to main content
Deno 2 is finally here 🎉️
Learn more
Module

std/node/crypto.ts>pbkdf2

Deno standard library
Go to Latest
The Standard Library has been moved to JSR. See the blog post for details.
function pbkdf2
Re-export
import { pbkdf2 } from "https://deno.land/std@0.145.0/node/crypto.ts";

Parameters

password: HASH_DATA

Needs to be higher or equal than zero

salt: HASH_DATA

Needs to be higher or equal than zero but less than max allocation size (2^30)

iterations: number

Algorithm to be used for encryption

keylen: number
optional
digest: Algorithms = [UNSUPPORTED]
callback: (err: Error | null, derivedKey?: Buffer) => void