@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.

Versions

Current Tags

  • Version
    Downloads (Last 7 Days)
    • Tag
  • 1.0.3
    0
    • latest

Version History

  • Version
    Downloads (Last 7 Days)
    • Published
  • 1.0.3
    0
  • 1.0.2
    0
  • 1.0.1
    0
  • 1.0.0
    0

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