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!');