@replit-community/rock-salt
TypeScript icon, indicating that this package has built-in type declarations

1.0.3 • Public • Published

Rock Salt

Try with Replit Badge

Rock solid password hashing library

  • Built with Typescript
  • Extremely light weight
  • Only native dependencies (crypto)

Installation

npm i @replit-community/rock-salt

Usage

import RockSalt from "@replit-community/rock-salt";

const salt = RockSalt.generateSalt();
const hashedPassword = RockSalt.hash("My Password", salt);
if (RockSalt.compare("My Password", hashedPassword)) {
  console.log("User authenticated");
}

It's that simple.

Readme

Keywords

Package Sidebar

Install

npm i @replit-community/rock-salt

Weekly Downloads

0

Version

1.0.3

License

ISC

Unpacked Size

3.06 kB

Total Files

6

Last publish

Collaborators

  • natmfat