@replit-community/rock-salt
v1.0.3
Published
Rock solid password hashing library
Downloads
10
Readme
Rock Salt
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.