https://github.com/denorg/scrypt
🔑 Deno library for hashing passwords using scrypt
https://github.com/denorg/scrypt
deno denoland denorg key-derivation-function scrypt security typescript
Last synced: about 2 months ago
JSON representation
🔑 Deno library for hashing passwords using scrypt
- Host: GitHub
- URL: https://github.com/denorg/scrypt
- Owner: denorg
- License: mit
- Created: 2020-05-20T23:13:24.000Z (about 5 years ago)
- Default Branch: master
- Last Pushed: 2024-04-11T18:42:53.000Z (about 1 year ago)
- Last Synced: 2025-04-12T06:05:52.896Z (about 2 months ago)
- Topics: deno, denoland, denorg, key-derivation-function, scrypt, security, typescript
- Language: JavaScript
- Homepage: https://denorg.github.io/scrypt/
- Size: 655 KB
- Stars: 20
- Watchers: 6
- Forks: 5
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# 🔑 scrypt
This is a wasm-based (using rust-crypto) implementation of scrypt key derivation
function that doesn't require any privileges.[](https://github.com/denorg/scrypt/actions)
[](https://github.com/denorg/scrypt/blob/master/LICENSE)
[](https://github.com/denorg/scrypt/graphs/contributors)
[](https://denorg.github.io/scrypt/)
[](https://github.com/denorg)
[](https://github.com/denorg/scrypt)
[](https://github.com/semantic-release/semantic-release)## ⭐ Getting started
Import the `hash` and/or `verify` functions and use them:
```ts
import { hash, verify } from "jsr:@denorg/[email protected]";const hashResult = hash("password");
const verifyResult = verify("password", hashResult);
```### CLI with [DPX](https://github.com/denorg/dpx)
After [installing DPX](https://github.com/denorg/dpx), you can directly use the
CLI using the `dpx` command:```bash
dpx scrypt hash
dpx scrypt verify
```### CLI
Alternatively, you can use it directly from the CLI by using `deno run`:
```bash
deno run jsr:@denorg/[email protected]/cli hash
deno run jsr:@denorg/[email protected]/cli verify
```You can also install it globally using the following:
```bash
deno install -n scrypt jsr:@denorg/[email protected]/cli
```Then, the package is available to run:
```bash
scrypt hash
scrypt verify
```## 👩💻 Development
Run tests:
```bash
deno test
```## 📄 License
MIT © [Denorg](https://den.org.in)
A project by Denorg, the world's first Deno-focused community
organization and consulting company. Work with us →