# zxcvbn-ios **Repository Path**: mirrors_dropbox/zxcvbn-ios ## Basic Information - **Project Name**: zxcvbn-ios - **Description**: A realistic password strength estimator. - **Primary Language**: Unknown - **License**: MIT - **Default Branch**: master - **Homepage**: None - **GVP Project**: No ## Statistics - **Stars**: 0 - **Forks**: 0 - **Created**: 2020-09-24 - **Last Updated**: 2026-02-14 ## Categories & Tags **Categories**: Uncategorized **Tags**: None ## README ``` .................................................bbb.................... .zzzzzzzzzz..xxx....xxx....cccccccc..vvv....vvv..bbb.........nnnnnnn.... .....zzzz......xxxxxx....cccc........vvv....vvv..bbbbbbbb....nnn...nnn.. ...zzzz........xxxxxx....cccc..........vvvvvv....bbb....bb...nnn...nnn.. .zzzzzzzzzz..xxx....xxx....cccccccc......vv......bbbbbbbb....nnn...nnn.. ........................................................................ ``` An obj-c port of zxcvbn, a password strength estimation library, designed for iOS. `DBZxcvbn` attempts to give sound password advice through pattern matching and conservative entropy calculations. It finds 10k common passwords, common American names and surnames, common English words, and common patterns like dates, repeats (aaa), sequences (abcd), and QWERTY patterns. Check out the original [JavaScript](https://github.com/dropbox/zxcvbn) (well, CoffeeScript) or the [Python port](https://github.com/dropbox/python-zxcvbn). For full motivation, see [zxcvbn: realistic password strength estimation](https://blogs.dropbox.com/tech/2012/04/zxcvbn-realistic-password-strength-estimation/). # Installation Coming soon. # Use The easiest way to use `DBZxcvbn` is by displaying a `DBPasswordStrengthMeter` in your form. Set up your `UITextFieldDelegate` and add a `DBPasswordStrengthMeter`. See the example here: [DBCreateAccountViewController.m](https://github.com/dropbox/zxcvbn-ios/blob/master/Example/DBCreateAccountViewController.m) As the user types, you can call `scorePassword:` like so: ``` objc - (BOOL)textField:(UITextField *)textField shouldChangeCharactersInRange:(NSRange)range replacementString:(NSString *)string { NSString *password = [textField.text stringByReplacingCharactersInRange:range withString:string]; [self.passwordStrengthMeterView scorePassword:password]; return YES; } ``` Here is what `DBPasswordStrengthMeter` looks like in a form: