Skip to content
/ scrypt Public
forked from denorg/scrypt

πŸ”‘ Deno library for hashing passwords using scrypt

License

Notifications You must be signed in to change notification settings

oplik0/scrypt

Β 
Β 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

Β 

History

25 Commits
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 

Repository files navigation

πŸ”‘ 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 "https://deno.land/x/scrypt/mod.ts";

const hashResult = await hash("password");
const verifyResult = await 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 https://deno.land/x/scrypt/cli.ts hash <password>
deno run https://deno.land/x/scrypt/cli.ts verify <password> <hash>

You can also install it globally using the following:

deno install -n scrypt https://deno.land/x/scrypt/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 β†’

About

πŸ”‘ Deno library for hashing passwords using scrypt

Resources

License

Stars

Watchers

Forks

Sponsor this project

 

Packages

No packages published

Languages

  • TypeScript 97.8%
  • Rust 2.2%