xcvbnm 2.0.3 xcvbnm: ^2.0.3 copied to clipboard
This is a dart port of zxcvbn (see https://github.com/dropbox/zxcvbn).
import 'package:xcvbnm/xcvbnm.dart' as xcvbnm;
void main() {
final password = 'my_pwd_1';
final result = xcvbnm.estimate(password);
if (result.score < 3) {
print('Password not strong enough. It can be cracked in '
'${result.crackTimeDisplay}. ${result.feedback}');
}
}