{"id":34090172,"url":"https://github.com/shopnilsazal/simple-bcrypt","last_synced_at":"2025-12-14T14:12:50.686Z","repository":{"id":57467294,"uuid":"119148304","full_name":"shopnilsazal/simple-bcrypt","owner":"shopnilsazal","description":"Bcrypt hashing utilities for `Flask/Sanic/Quart/Eve` application.","archived":false,"fork":false,"pushed_at":"2018-01-27T10:07:55.000Z","size":192,"stargazers_count":22,"open_issues_count":0,"forks_count":1,"subscribers_count":3,"default_branch":"master","last_synced_at":"2025-10-26T23:55:00.239Z","etag":null,"topics":["bcrypt","bcrypt-hashing-library","password-hash","python3"],"latest_commit_sha":null,"homepage":"https://shopnilsazal.github.io/simple-bcrypt/","language":"Python","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"other","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/shopnilsazal.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":"2018-01-27T08:49:51.000Z","updated_at":"2024-02-07T23:16:55.000Z","dependencies_parsed_at":"2022-09-10T02:02:21.198Z","dependency_job_id":null,"html_url":"https://github.com/shopnilsazal/simple-bcrypt","commit_stats":null,"previous_names":[],"tags_count":1,"template":false,"template_full_name":null,"purl":"pkg:github/shopnilsazal/simple-bcrypt","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/shopnilsazal%2Fsimple-bcrypt","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/shopnilsazal%2Fsimple-bcrypt/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/shopnilsazal%2Fsimple-bcrypt/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/shopnilsazal%2Fsimple-bcrypt/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/shopnilsazal","download_url":"https://codeload.github.com/shopnilsazal/simple-bcrypt/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/shopnilsazal%2Fsimple-bcrypt/sbom","scorecard":{"id":820684,"data":{"date":"2025-08-11","repo":{"name":"github.com/shopnilsazal/simple-bcrypt","commit":"58062ee068cde2be6263108ff85b7d56ea168762"},"scorecard":{"version":"v5.2.1-40-gf6ed084d","commit":"f6ed084d17c9236477efd66e5b258b9d4cc7b389"},"score":3,"checks":[{"name":"Packaging","score":-1,"reason":"packaging workflow not detected","details":["Warn: no GitHub/GitLab publishing workflow detected."],"documentation":{"short":"Determines if the project is published as a package that others can easily download, install, easily update, and uninstall.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#packaging"}},{"name":"Code-Review","score":0,"reason":"Found 0/5 approved changesets -- score normalized to 0","details":null,"documentation":{"short":"Determines if the project requires human code review before pull requests (aka merge requests) are merged.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#code-review"}},{"name":"Maintained","score":0,"reason":"0 commit(s) and 0 issue activity found in the last 90 days -- score normalized to 0","details":null,"documentation":{"short":"Determines if the project is \"actively maintained\".","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#maintained"}},{"name":"Dangerous-Workflow","score":-1,"reason":"no workflows found","details":null,"documentation":{"short":"Determines if the project's GitHub Action workflows avoid dangerous patterns.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#dangerous-workflow"}},{"name":"SAST","score":0,"reason":"no SAST tool detected","details":["Warn: no pull requests merged into dev branch"],"documentation":{"short":"Determines if the project uses static code analysis.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#sast"}},{"name":"Binary-Artifacts","score":10,"reason":"no binaries found in the repo","details":null,"documentation":{"short":"Determines if the project has generated executable (binary) artifacts in the source repository.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#binary-artifacts"}},{"name":"Token-Permissions","score":-1,"reason":"No tokens found","details":null,"documentation":{"short":"Determines if the project's workflows follow the principle of least privilege.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#token-permissions"}},{"name":"Pinned-Dependencies","score":-1,"reason":"no dependencies found","details":null,"documentation":{"short":"Determines if the project has declared and pinned the dependencies of its build process.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#pinned-dependencies"}},{"name":"CII-Best-Practices","score":0,"reason":"no effort to earn an OpenSSF best practices badge detected","details":null,"documentation":{"short":"Determines if the project has an OpenSSF (formerly CII) Best Practices Badge.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#cii-best-practices"}},{"name":"Security-Policy","score":0,"reason":"security policy file not detected","details":["Warn: no security policy file detected","Warn: no security file to analyze","Warn: no security file to analyze","Warn: no security file to analyze"],"documentation":{"short":"Determines if the project has published a security policy.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#security-policy"}},{"name":"Fuzzing","score":0,"reason":"project is not fuzzed","details":["Warn: no fuzzer integrations found"],"documentation":{"short":"Determines if the project uses fuzzing.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#fuzzing"}},{"name":"Vulnerabilities","score":10,"reason":"0 existing vulnerabilities detected","details":null,"documentation":{"short":"Determines if the project has open, known unfixed vulnerabilities.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#vulnerabilities"}},{"name":"License","score":9,"reason":"license file detected","details":["Info: project has a license file: LICENSE:0","Warn: project license file does not contain an FSF or OSI license."],"documentation":{"short":"Determines if the project has defined a license.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#license"}},{"name":"Signed-Releases","score":-1,"reason":"no releases found","details":null,"documentation":{"short":"Determines if the project cryptographically signs release artifacts.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#signed-releases"}},{"name":"Branch-Protection","score":0,"reason":"branch protection not enabled on development/release branches","details":["Warn: branch protection not enabled for branch 'master'"],"documentation":{"short":"Determines if the default and release branches are protected with GitHub's branch protection settings.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#branch-protection"}}]},"last_synced_at":"2025-08-23T15:27:44.480Z","repository_id":57467294,"created_at":"2025-08-23T15:27:44.480Z","updated_at":"2025-08-23T15:27:44.480Z"},"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":27729588,"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-12-14T02:00:11.348Z","response_time":56,"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":["bcrypt","bcrypt-hashing-library","password-hash","python3"],"created_at":"2025-12-14T14:12:49.997Z","updated_at":"2025-12-14T14:12:50.664Z","avatar_url":"https://github.com/shopnilsazal.png","language":"Python","funding_links":[],"categories":["Developer Tools \u0026 Libraries"],"sub_categories":["🚀 How to contribute"],"readme":"# simple-bcrypt\n\nsimple-bcrypt provides bcrypt hashing utilities for `Flask/Sanic/Quart/Eve` application.\nPython 3.3+ is required to use this package.\n\nDue to the recent increased prevelance of powerful hardware, such as modern\nGPUs, hashes have become increasingly easy to crack. A proactive solution to\nthis is to use a hash that was designed to be \"de-optimized\". Bcrypt is such\na hashing facility; unlike hashing algorithms such as MD5 and SHA1, which are\noptimized for speed, bcrypt is intentionally structured to be slow.\n\nFor sensitive data that must be protected, such as passwords, bcrypt is an\nadvisable choice.\n\n## Installation\n\nInstall the extension with one of the following commands:\n    \n    $ pip install simple-bcrypt\n\n## Usage\n\nTo use the package simply import the class wrapper and pass the app\nobject back to here. Do so like this:\n\n### Flask\n    \n    from flask import Flask\n    from simple_bcrypt import Bcrypt\n    \n    app = Flask(__name__)\n    bcrypt = Bcrypt(app)\n\n\n### Sanic\n\n    from sanic import Sanic\n    from simple_bcrypt import Bcrypt\n\n    app = Sanic(__name__)\n    bcrypt = Bcrypt(app)\n\n\n### Quart\n\n    from quart import Quart\n    from simple_bcrypt import Bcrypt\n\n    app = Quart(__name__)\n    bcrypt = Bcrypt(app)\n\n\n### Eve\n\n    from eve import Eve\n    from simple_bcrypt import Bcrypt\n\n    app = Eve()\n    bcrypt = Bcrypt(app)\n\n\n#### Available Config with default\n\n    app.config['BCRYPT_LOG_ROUNDS'] = 6\n    app.config['BCRYPT_HASH_IDENT'] = '2b'\n    app.config['BCRYPT_HANDLE_LONG_PASSWORDS'] = False\n\n\nTwo primary hashing methods are now exposed by way of the bcrypt object.\nYou need to use decode('utf-8') on generate_password_hash(), like below:\n\n    pw_hash = bcrypt.generate_password_hash('hunter2').decode('utf-8')\n    bcrypt.check_password_hash(pw_hash, 'hunter2') # returns True\n\n## Documentation\n\n[simple-bcrypt docs](https://shopnilsazal.github.io/simple-bcrypt/)\n\n\n## Credits\n\nsimple-bcrypt is ported from [Flask-Bcrypt](https://github.com/maxcountryman/flask-bcrypt)\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fshopnilsazal%2Fsimple-bcrypt","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fshopnilsazal%2Fsimple-bcrypt","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fshopnilsazal%2Fsimple-bcrypt/lists"}