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