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