Skip to main content

latest
Works with
JSR Score
82%
Published
3 months 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

Add Package

deno add @simple/pbkdf2

Import symbol

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

Add Package

npx jsr add @simple/pbkdf2

Import symbol

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

Add Package

yarn dlx jsr add @simple/pbkdf2

Import symbol

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

Add Package

pnpm dlx jsr add @simple/pbkdf2

Import symbol

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

Add Package

bunx jsr add @simple/pbkdf2

Import symbol

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