{"id":34140725,"url":"https://github.com/cloud3000/hashpass","last_synced_at":"2026-06-01T10:31:42.786Z","repository":{"id":57562963,"uuid":"331933032","full_name":"cloud3000/hashpass","owner":"cloud3000","description":"hashpass is a set of functions utilizing bcrypt to assist in storing hashed passwords for new user registration, and password/hash comparison for user authentication.","archived":false,"fork":false,"pushed_at":"2021-01-22T22:22:22.000Z","size":586,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-12-17T15:41:12.429Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"","language":"Go","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"gpl-3.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/cloud3000.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}},"created_at":"2021-01-22T11:59:37.000Z","updated_at":"2021-01-22T22:22:24.000Z","dependencies_parsed_at":"2022-09-16T10:41:37.096Z","dependency_job_id":null,"html_url":"https://github.com/cloud3000/hashpass","commit_stats":null,"previous_names":[],"tags_count":4,"template":false,"template_full_name":null,"purl":"pkg:github/cloud3000/hashpass","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/cloud3000%2Fhashpass","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/cloud3000%2Fhashpass/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/cloud3000%2Fhashpass/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/cloud3000%2Fhashpass/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/cloud3000","download_url":"https://codeload.github.com/cloud3000/hashpass/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/cloud3000%2Fhashpass/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":33771627,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-05-26T15:22:16.424Z","status":"online","status_checked_at":"2026-06-01T02:00:06.963Z","response_time":115,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","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":"2025-12-15T02:52:58.131Z","updated_at":"2026-06-01T10:31:42.781Z","avatar_url":"https://github.com/cloud3000.png","language":"Go","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Hashing Passwords with bcrypt.\n hashpass is a set of functions utilizing bcrypt to assist in storing hashed passwords for new user registration, and password/hash comparison for user authentication.\n\nHere is an example of how it might be used.\n\n```go\npackage main\n\nimport (\n\t\"fmt\"\n\t\"os\"\n\t\"strings\"\n\n\t\"github.com/cloud3000/hashpass\"\n)\n\nfunc main() {\n\tpassdb := \"pass.json\" // JSON file where passwords are stored.\n\tcmd, usr, pas, err := hashpass.GetInfo()\n\tif err != nil {\n\t\tfmt.Fprintf(os.Stderr, \"%s\\n\", err)\n\t\tos.Exit(1)\n\t}\n\n\tif hashpass.ChkBadpass(pas) {\n\t\tfmt.Fprintf(os.Stderr, \"Overused Password NOT ALLOWED! [%s]\\n\", pas)\n\t\tos.Exit(2)\n\t}\n\tvar cc uint8 = 0\n\tswitch strings.ToLower(cmd) {\n\tcase \"store\":\n\t\tn, err := hashpass.StorePass(usr, pas, passdb)\n\t\tif n == 0 {\n\t\t\tif err != nil {\n\t\t\t\tfmt.Fprintf(os.Stderr, \"Error: %s\\n\", err)\n\t\t\t} else {\n\t\t\t\tfmt.Fprintf(os.Stderr, \"StorePass failed to write any data\")\n\t\t\t}\n\t\t}\n\tcase \"check\":\n\t\tcc, err = hashpass.CheckPass(usr, pas, passdb)\n\t\tif cc != 1 {\n\t\t\tif err != nil {\n\t\t\t\tfmt.Fprintf(os.Stderr, \"CheckPass Error: %v\", err)\n\t\t\t} else {\n\t\t\t\tfmt.Fprintf(os.Stderr, \"Invalid Credentials\")\n\t\t\t}\n\t\t}\n\tdefault:\n\t\terr = fmt.Errorf(\"%s is not a valid command\", cmd)\n\t}\n\tif err != nil {\n\t\tfmt.Fprintf(os.Stderr, \"%s\\n\", err)\n\t}\n}\n\n\n```\nToDo's: \n1. Add config.json, and code to support it.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fcloud3000%2Fhashpass","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fcloud3000%2Fhashpass","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fcloud3000%2Fhashpass/lists"}