{"id":19469112,"url":"https://github.com/xy3/v-password-validator","last_synced_at":"2026-02-28T22:31:33.873Z","repository":{"id":164080962,"uuid":"455527150","full_name":"xy3/v-password-validator","owner":"xy3","description":"Validate the Strength of a Password in V","archived":false,"fork":false,"pushed_at":"2023-05-11T17:13:48.000Z","size":19,"stargazers_count":8,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-02-25T14:37:57.917Z","etag":null,"topics":["password","password-strength","password-validator","security","vlang","vlang-library","vlang-module"],"latest_commit_sha":null,"homepage":"https://vpm.vlang.io/packages/xy3.passvalid","language":"V","has_issues":true,"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/xy3.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2022-02-04T11:45:06.000Z","updated_at":"2024-08-24T02:17:17.000Z","dependencies_parsed_at":null,"dependency_job_id":"4d72d655-5f74-45e5-8f70-c71fd2f0cd1d","html_url":"https://github.com/xy3/v-password-validator","commit_stats":null,"previous_names":[],"tags_count":2,"template":false,"template_full_name":null,"purl":"pkg:github/xy3/v-password-validator","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/xy3%2Fv-password-validator","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/xy3%2Fv-password-validator/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/xy3%2Fv-password-validator/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/xy3%2Fv-password-validator/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/xy3","download_url":"https://codeload.github.com/xy3/v-password-validator/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/xy3%2Fv-password-validator/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":29953282,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-02-28T18:42:55.706Z","status":"ssl_error","status_checked_at":"2026-02-28T18:42:48.811Z","response_time":90,"last_error":"SSL_connect returned=1 errno=0 peeraddr=140.82.121.6:443 state=error: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"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":["password","password-strength","password-validator","security","vlang","vlang-library","vlang-module"],"created_at":"2024-11-10T18:46:11.105Z","updated_at":"2026-02-28T22:31:33.833Z","avatar_url":"https://github.com/xy3.png","language":"V","funding_links":[],"categories":[],"sub_categories":[],"readme":"\u003cdiv align=\"center\"\u003e\n\u003ch1\u003e:space_invader: V password validator\u003c/h1\u003e\n\u003c/div\u003e\n\n\u003cp align=\"center\"\u003e\n    Simple password validator using raw entropy values, written in \u003ca href=\"https://vlang.io/\"\u003eV\u003c/a\u003e.\n\u003c/p\u003e\n\n\n\u003cp align=\"center\"\u003e\n⭐ If you like this project please give it a star! ⭐\n\u003c/p\u003e\n\n---\n\nHeavily influenced by [go-password-validator](https://github.com/wagslane/go-password-validator)\n\n## Installation:\n\nInstall using `V`'s builtin `vpm`:\n\n```bash\nv install xy3.passvalid\n```\n\nInstall using `git`:\n\n```bash\ncd path/to/your/project\ngit clone https://github.com/xy3/v-password-validator\n```\n\nThen in the wherever you want to use it:\n\n```v\nimport xy3.passvalid\n```\n\nAnd that's it!\n\n## Usage\n\n## 🚀 Quick Start\n\n```v\nimport xy3.passvalid\n\nfn main(){\n    entropy := passvalid.get_entropy(\"a longer password\")\n    // entropy is a f64, representing the strength in base 2 (bits)\n\n    min_entropy_bits := 60\n    passvalid.validate(\"some password\", min_entropy_bits) or { panic(err) }\n    // if the password has enough entropy, nothing is returned\n    // otherwise, a formatted error message is provided explaining\n    // how to increase the strength of the password\n    // (safe to show to the client)\n}\n```\n\n## What Entropy Value Should I Use?\n\nIt's up to you. That said, here is a graph that shows some common timings for different values, somewhere in the 50-70 range seems \"reasonable\".\n\n![brute force diagram](https://blog.braincoke.fr/assets/images/security/password_entropy_small.png)\n\nKeep in mind that attackers likely aren't just brute-forcing passwords, if you want protection against common passwords or [PWNed passwords](https://haveibeenpwned.com/) you'll need to do additional work. This library is lightweight, doesn't load large datasets, and doesn't contact external services.\n\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fxy3%2Fv-password-validator","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fxy3%2Fv-password-validator","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fxy3%2Fv-password-validator/lists"}