Skip to main content
The Deno 2 Release Candidate is here
Learn more
Go to Latest
The Standard Library has been moved to JSR. See the blog post for details.
function pbkdf2Sync
import { pbkdf2Sync } from "https://deno.land/std@0.141.0/node/internal/crypto/pbkdf2.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]

Returns

Buffer