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.
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.
import 'package:password_compromised/password_compromised.dart';
main() async {
final isCompromised = await isPasswordCompromised('test');
print('Password "test" is compromised? ${isCompromised}');
}