{"id":13992646,"url":"https://github.com/mattt/Navajo","last_synced_at":"2025-07-22T16:31:00.087Z","repository":{"id":14662913,"uuid":"17381439","full_name":"mattt/Navajo","owner":"mattt","description":"Password Validator \u0026 Strength Evaluator","archived":true,"fork":false,"pushed_at":"2019-06-13T16:36:10.000Z","size":65,"stargazers_count":829,"open_issues_count":0,"forks_count":52,"subscribers_count":17,"default_branch":"master","last_synced_at":"2025-04-24T01:42:24.033Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"","language":"Objective-C","has_issues":false,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/mattt.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE.md","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2014-03-03T21:51:40.000Z","updated_at":"2025-03-22T17:36:20.000Z","dependencies_parsed_at":"2022-09-12T15:30:27.899Z","dependency_job_id":null,"html_url":"https://github.com/mattt/Navajo","commit_stats":null,"previous_names":[],"tags_count":2,"template":false,"template_full_name":null,"purl":"pkg:github/mattt/Navajo","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mattt%2FNavajo","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mattt%2FNavajo/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mattt%2FNavajo/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mattt%2FNavajo/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/mattt","download_url":"https://codeload.github.com/mattt/Navajo/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mattt%2FNavajo/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":266530874,"owners_count":23943999,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","status":"online","status_checked_at":"2025-07-22T02:00:09.085Z","response_time":66,"last_error":null,"robots_txt_status":null,"robots_txt_updated_at":null,"robots_txt_url":"https://github.com/robots.txt","online":true,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":[],"created_at":"2024-08-09T14:02:04.557Z","updated_at":"2025-07-22T16:30:59.704Z","avatar_url":"https://github.com/mattt.png","language":"Objective-C","funding_links":[],"categories":["Objective-C"],"sub_categories":[],"readme":"# Navajo\n\n**Password Validator \u0026 Strength Evaluator**\n\n\u003e This library is no longer maintained.\n\u003e Use [Password Autofill Rules](https://developer.apple.com/documentation/security/password_autofill/customizing_password_autofill_rules)\n\u003e in iOS 12, macOS Mojave, and Safari\n\u003e to generate strong random passwords\n\u003e according to your own validation criteria.\n\n![Navajo](https://raw.github.com/mattt/Navajo/screenshots/example.gif)\n\n\u003e Navajo is named in honor of the famed [code talkers of the Second World War](http://en.wikipedia.org/wiki/Code_talker#Navajo_code_talkers).\n\n## Usage\n\n### Validating Password\n\n```objective-c\nNSString *password = @\"abc123\"\nNJOPasswordValidator *validator = [NJOPasswordValidator standardValidator];\n\nNSArray *failingRules = nil;\nBOOL isValid = [validator validatePassword:password\n                              failingRules:\u0026failingRules];\n\nif (!isValid) {\n    for (id \u003cNJOPasswordRule\u003e rule in failingRules) {\n        NSLog(@\"- %@\", [rule localizedErrorDescription]);\n    }\n}\n```\n\n#### Available Validation Rules\n\n- Allowed Characters\n- Required Characters (e.g. lowercase, uppercase, decimal, symbol)\n- Non-Dictionary Word\n- Minimum / Maximum Length\n- Predicate Match\n- Regular Expression Match\n- Block Evaluation\n\n### Evaluating Password Strength\n\n\u003e Password strength is evaluated in terms of [information entropy](http://en.wikipedia.org/wiki/Entropy_%28information_theory%29).\n\n```objective-c\nNJOPasswordStrength strength = [NJOPasswordStrengthEvaluator strengthOfPassword:password];\nNSLog(@\"%@\", [NJOPasswordStrengthEvaluator localizedStringForPasswordStrength:strength]);\n```\n\n## License\n\nMIT\n\n## Contact\n\nMattt ([@mattt](https://twitter.com/mattt))\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmattt%2FNavajo","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fmattt%2FNavajo","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmattt%2FNavajo/lists"}