Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
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: 4 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 (over 4 years ago)
- Default Branch: master
- Last Pushed: 2024-04-11T18:42:53.000Z (10 months ago)
- Last Synced: 2024-10-11T21:04:23.863Z (4 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: 7
- 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.[![Deno CI](https://github.com/denorg/scrypt/workflows/Deno%20CI/badge.svg)](https://github.com/denorg/scrypt/actions)
[![GitHub](https://img.shields.io/github/license/denorg/scrypt)](https://github.com/denorg/scrypt/blob/master/LICENSE)
[![Contributors](https://img.shields.io/github/contributors/denorg/scrypt)](https://github.com/denorg/scrypt/graphs/contributors)
[![Scrypt](https://img.shields.io/badge/deno-scrypt-brightgreen)](https://denorg.github.io/scrypt/)
[![Made by Denorg](https://img.shields.io/badge/made%20by-denorg-0082fb)](https://github.com/denorg)
[![TypeScript](https://img.shields.io/badge/types-TypeScript-blue)](https://github.com/denorg/scrypt)
[![semantic-release](https://img.shields.io/badge/%20%20%F0%9F%93%A6%F0%9F%9A%80-semantic--release-e10079.svg)](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 →