{"id":16406641,"url":"https://github.com/pollrobots/bcrypt","last_synced_at":"2026-06-21T14:31:25.147Z","repository":{"id":151084168,"uuid":"41753273","full_name":"PollRobots/bcrypt","owner":"PollRobots","description":"An easy-to-use C implementation of the bcrypt algorithm for storing passwords.","archived":false,"fork":false,"pushed_at":"2015-11-15T17:24:18.000Z","size":104,"stargazers_count":0,"open_issues_count":0,"forks_count":2,"subscribers_count":3,"default_branch":"master","last_synced_at":"2025-02-23T21:27:20.427Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"C","has_issues":false,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/PollRobots.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2015-09-01T17:33:40.000Z","updated_at":"2021-12-18T23:22:44.000Z","dependencies_parsed_at":"2023-04-12T22:38:24.824Z","dependency_job_id":null,"html_url":"https://github.com/PollRobots/bcrypt","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/PollRobots/bcrypt","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/PollRobots%2Fbcrypt","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/PollRobots%2Fbcrypt/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/PollRobots%2Fbcrypt/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/PollRobots%2Fbcrypt/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/PollRobots","download_url":"https://codeload.github.com/PollRobots/bcrypt/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/PollRobots%2Fbcrypt/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":34613042,"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-21T02:00:05.568Z","response_time":54,"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":"2024-10-11T06:10:29.962Z","updated_at":"2026-06-21T14:31:25.128Z","avatar_url":"https://github.com/PollRobots.png","language":"C","funding_links":[],"categories":[],"sub_categories":[],"readme":"# bcrypt\n\n## Genealogy\n\nThis library is based on [Ricardo Garcia's wrapper](https://github.com/rg3/bcrypt \"bcrypt\") of [Solar Designer's implementation](http://www.openwall.com/crypt/ \"crypt\") of \"[A future-adaptable password scheme](http://static.usenix.org/event/usenix99/provos/provos.pdf)\" by Niels Provos and David Mazières.\n\n## Usage\n\nTwo routines, `bcrypt_gensalt()` and `bcrypt_hashpw()`, are all that's needed for hashing and verifying passwords.  See test.c and bcrypt.h for an explanation of their use.\n\nYou can safely store the hashed password in a database as the expected computational effort to brute-force the hashing scheme is on the order of several years for current (2011) hardware and a decent password.\n\n## Structure of the hashed passwords\n\nA password such as \"$2a$10$VEVmGHy4F4XQMJ3eOZJAUeb.MedU0W10pTPCuf53eHdKJPiSE8sMK\" is comprised of a prefix \"$2a\" identifying it as a bcrypt password, an integer \"10\" which specifies the \"work factor\" (i.e. how many passes of the Blowfish algorithm to use), a salt \"VEVmGHy4F4XQMJ3eOZJAUe\" which should be unique for each password stored, and the hashed password \"b.MedU0W10pTPCuf53eHdKJPiSE8sMK\" encoded in base-64.\n\n## License\n\nThis code is released in the public domain.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fpollrobots%2Fbcrypt","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fpollrobots%2Fbcrypt","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fpollrobots%2Fbcrypt/lists"}