Skip to main content
Home

Built and signed on GitHub Actions

An implementation of scrypt password hashing function based on rust-crypto (via wasm)

This package works with Node.js, Deno, BrowsersIt is unknown whether this package works with Cloudflare Workers, Bun
It is unknown whether this package works with Cloudflare Workers
This package works with Node.js
This package works with Deno
It is unknown whether this package works with Bun
This package works with Browsers
JSR Score
100%
Published
a year ago (4.4.4)

🔑 scrypt

This is a wasm-based (using rust-crypto) implementation of scrypt key derivation function that doesn't require any privileges.

Deno CI GitHub Contributors Scrypt Made by Denorg TypeScript semantic-release

⭐ Getting started

Import the hash and/or verify functions and use them:

import { hash, verify } from "jsr:@denorg/scrypt@4.4.4";

const hashResult = hash("password");
const verifyResult = verify("password", hashResult);

CLI with DPX

After installing DPX, you can directly use the CLI using the dpx command:

dpx scrypt hash <password>
dpx scrypt verify <password> <hash>

CLI

Alternatively, you can use it directly from the CLI by using deno run:

deno run jsr:@denorg/scrypt@4.4.4/cli hash <password>
deno run jsr:@denorg/scrypt@4.4.4/cli verify <password> <hash>

You can also install it globally using the following:

deno install -n scrypt jsr:@denorg/scrypt@4.4.4/cli

Then, the package is available to run:

scrypt hash <password>
scrypt verify <password>

👩‍💻 Development

Run tests:

deno test

📄 License

MIT © Denorg

A project by Denorg, the world's first Deno-focused community
organization and consulting company. Work with us →

Built and signed on
GitHub Actions

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:@denorg/scrypt

Import symbol

import * as scrypt from "@denorg/scrypt";
or

Import directly with a jsr specifier

import * as scrypt from "jsr:@denorg/scrypt";

Add Package

pnpm i jsr:@denorg/scrypt
or (using pnpm 10.8 or older)
pnpm dlx jsr add @denorg/scrypt

Import symbol

import * as scrypt from "@denorg/scrypt";

Add Package

yarn add jsr:@denorg/scrypt
or (using Yarn 4.8 or older)
yarn dlx jsr add @denorg/scrypt

Import symbol

import * as scrypt from "@denorg/scrypt";

Add Package

npx jsr add @denorg/scrypt

Import symbol

import * as scrypt from "@denorg/scrypt";

Add Package

bunx jsr add @denorg/scrypt

Import symbol

import * as scrypt from "@denorg/scrypt";