Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/danpalmer/complexify-objc
Objective-C port of Dan Palmer's Complexify
https://github.com/danpalmer/complexify-objc
Last synced: about 2 months ago
JSON representation
Objective-C port of Dan Palmer's Complexify
- Host: GitHub
- URL: https://github.com/danpalmer/complexify-objc
- Owner: danpalmer
- Created: 2013-03-12T15:20:16.000Z (almost 12 years ago)
- Default Branch: master
- Last Pushed: 2013-03-12T16:49:08.000Z (almost 12 years ago)
- Last Synced: 2024-10-14T21:24:49.522Z (3 months ago)
- Language: Objective-C
- Size: 110 KB
- Stars: 0
- Watchers: 2
- Forks: 1
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Complexify-ObjC
Objective-C port of [Dan Palmer's jQuery Complexify plugin](http://danpalmer.me/jquery-complexify/)."Complexify aims to provide a good measure of password complexity for ~~websites~~ apps to use both for giving hints to users in the form of ~~strength bars~~ security level, and for casually enforcing a minimum complexity for security reasons."
## Usage
**Computing password complexity**
```objective-c
-(void)checkComplexityOfPassword:(NSString *)password completionHandler:(void(^)(BOOL valid, CGFloat complexity))completionHandler;Complexify *complexify = [[Complexify alloc] init];
[complexify checkComplexityOfPassword:@"foobar"
completionHandler:^(BOOL valid, CGFloat complexity){
/*
valid :
BOOL
YES | NOcomplexity :
CGFloat
0 <= complexity <= 100
*/
}];}];
```