1.0.3 • Published 5 months ago

@replit-community/rock-salt v1.0.3

Weekly downloads
-
License
ISC
Repository
-
Last release
5 months ago

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.

1.0.3

5 months ago

1.0.2

11 months ago

1.0.1

12 months ago

1.0.0

12 months ago