1.0.3 • Published 2 years ago

@replit-community/rock-salt v1.0.3

Weekly downloads
-
License
ISC
Repository
-
Last release
2 years 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

2 years ago

1.0.2

2 years ago

1.0.1

2 years ago

1.0.0

2 years ago