0.0.2 • Published 3 months ago

hash-safe v0.0.2

Weekly downloads
-
License
MIT
Repository
github
Last release
3 months ago

🔒 HashSafe – Secure Password Generation & Validation

HashSafe is a lightweight and efficient JavaScript library for secure password hashing, generation, and validation. It provides a simple API to create strong passwords, hash them using industry-standard algorithms, and verify user credentials effortlessly.

✨ Features:

  • 🔑 Strong Password Generation – Customizable length & complexity.
  • 🔒 Secure Hashing – Uses bcrypt or argon2 for password hashing.
  • Validation – Checks password strength and verifies hashes.
  • 🚀 Lightweight & Fast – Optimized for performance and security.
  • 📦 Easy to Use – Works with Node.js and browser environments.

📌 Installation

npm install hash-safe

🔧 Usage

import { hashPassword, verifyPassword, generatePassword } from "hash-safe";

const password = "SuperSecure123!";
const hash = await hashPassword(password);

console.log(await verifyPassword(password, hash)); // true
console.log(generatePassword(12)); // Random strong password

🔐 Stay Safe with HashSafe!