Skip to main content
Home

latest
It is unknown whether this package works with Cloudflare Workers, Node.js, Deno, Bun, Browsers
It is unknown whether this package works with Cloudflare Workers
It is unknown whether this package works with Node.js
It is unknown whether this package works with Deno
It is unknown whether this package works with Bun
It is unknown whether this package works with Browsers
JSR Score
82%
Published
a year ago (0.0.2)

A module for hashing and comparing passwords using pbkdf2.

Examples

Example 1

import { pbkdf2, compare } from "@simple/pbkdf2";

const hashed = await pbkdf2("myPassword");
console.log(hashed); // hex encoded salted hash

const isValid = await compare("myPassword", hashed);
console.log(isValid); // true

New Ticket: Report package

Please provide a reason for reporting this package. We will review your report and take appropriate action.

Please review the JSR usage policy before submitting a report.

Add Package

deno add jsr:@simple/pbkdf2

Import symbol

import * as pbkdf_ from "@simple/pbkdf2";
or

Import directly with a jsr specifier

import * as pbkdf_ from "jsr:@simple/pbkdf2";

Add Package

pnpm i jsr:@simple/pbkdf2
or (using pnpm 10.8 or older)
pnpm dlx jsr add @simple/pbkdf2

Import symbol

import * as pbkdf_ from "@simple/pbkdf2";

Add Package

yarn add jsr:@simple/pbkdf2
or (using Yarn 4.8 or older)
yarn dlx jsr add @simple/pbkdf2

Import symbol

import * as pbkdf_ from "@simple/pbkdf2";

Add Package

npx jsr add @simple/pbkdf2

Import symbol

import * as pbkdf_ from "@simple/pbkdf2";

Add Package

bunx jsr add @simple/pbkdf2

Import symbol

import * as pbkdf_ from "@simple/pbkdf2";