Attributes
Includes Deno configuration
Repository
Current version released
11 months ago
Dependencies
std
π scrypt
This is a wasm-based (using rust-crypto) implementation of scrypt key derivation function that doesnβt require any privileges.
β Getting started
Import the hash
and/or verify
functions and use them:
import { hash, verify } from "https://deno.land/x/scrypt@v4.3.0/mod.ts";
const hashResult = hash("password");
const verifyResult = verify("password", hashResult);
DPX
CLI withAfter 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 https://deno.land/x/scrypt@v4.3.0/cli.ts hash <password>
deno run https://deno.land/x/scrypt@v4.3.0/cli.ts verify <password> <hash>
You can also install it globally using the following:
deno install -n scrypt https://deno.land/x/scrypt@v4.3.0/cli.ts
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 β