betarabbit / password-compromised

A dart package to determine if a password is compromised by checking with the Have I Been Pwned API.
https://pub.dev/packages/password_compromised
MIT License
1 stars 1 forks source link
compromised dart password pwned

password-compromised

License Build

Introduction

password-compromised is a dart package inspired by password-leak that can be used to determine if a password is compromised by checking with the Have I Been Pwned API.

How is this safe?

Your passwords are NEVER transmitted to any other system. This library makes use of the Have I Been Pwned API, which implements a k-Anonymity Model so your password can be checked without ever having to give it to any other party.

Usage

import 'package:password_compromised/password_compromised.dart';

main() async {
  final isCompromised = await isPasswordCompromised('test');
  print('Password "test" is compromised? ${isCompromised}');
}