v0.2.0
password_strength
一个密码强度估算器。可用于向用户显示他们选择的密码是否能抵御暴力破解或字典攻击。
156喜欢 20万近 30 天下载160Pub 分数
AndroidiOSWebmacOSWindowsLinux
一个用于评估给定密码强度的 Dart 包。
^1.16.8以下为英文项目原文快照,最新内容请访问 GitHub。
A basic password strength estimator for Dart. Considers the length of the password, used characters, and whether or not the password appears in the top 10,000 most used passwords.
import 'package:password_strength/password_strength.dart';
...
double strength = estimatePasswordStrength('passw0rd');
if (strength < 0.3)
print('This password is weak!');