Skip to content

doddydigitaldesign/password-strength-rs

password-strength-rs

A password strength calculator written in Rust and compiled to WASM.

Installation

npm install password-strength-rs

Usage

The get_strength method converts the estimated password entropy into a human-readable format:

  • "very-weak": 0-28 bits
  • "weak": 28-59 bits
  • "strong": 59-127 bits
  • "very-strong": 128 bits or more
import { Calculator } from 'password-strength-rs';

const calc = Calculator.new("password123");

const entropy = calc.get_entropy();

// Get a human-readable strength estimate
const strength = calc.get_strength();

Related guide

See GUIDE.md or visit www.doddy.se/guides.

About

A password strength calculator written in Rust

Resources

License

MIT and 2 other licenses found

Licenses found

MIT
LICENSE
Apache-2.0
LICENSE_APACHE
MIT
LICENSE_MIT

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages