{"id":19297281,"url":"https://github.com/corydolphin/python-bcrypt","last_synced_at":"2025-07-28T22:31:37.481Z","repository":{"id":4426051,"uuid":"5563997","full_name":"corydolphin/python-bcrypt","owner":"corydolphin","description":"DEPRECATED. An up to date fork of py-bcrypt, Python 3 and Python 2 compatible,  compiles on Windows, Mac, Linux","archived":false,"fork":false,"pushed_at":"2014-05-29T19:24:47.000Z","size":337,"stargazers_count":31,"open_issues_count":0,"forks_count":10,"subscribers_count":5,"default_branch":"master","last_synced_at":"2024-11-09T23:02:27.738Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"","language":"C","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/corydolphin.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":"2012-08-26T21:45:47.000Z","updated_at":"2024-04-11T07:23:33.000Z","dependencies_parsed_at":"2022-08-27T07:20:15.299Z","dependency_job_id":null,"html_url":"https://github.com/corydolphin/python-bcrypt","commit_stats":null,"previous_names":[],"tags_count":1,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/corydolphin%2Fpython-bcrypt","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/corydolphin%2Fpython-bcrypt/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/corydolphin%2Fpython-bcrypt/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/corydolphin%2Fpython-bcrypt/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/corydolphin","download_url":"https://codeload.github.com/corydolphin/python-bcrypt/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":227961856,"owners_count":17847836,"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","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-11-09T23:01:50.269Z","updated_at":"2024-12-03T16:55:34.674Z","avatar_url":"https://github.com/corydolphin.png","language":"C","funding_links":[],"categories":["C"],"sub_categories":[],"readme":"OUTDATED\n===========\nThe Google Code project has seen a revival including a number of important updates. I do not have time to manage maintaining compatibility and integrating the improvements. I believe the Google Code project now addresses most of the issues this project solved, please see [Google Code project](http://code.google.com/p/py-bcrypt/).\n\n\n\n\nPython BCrypt (Old out of date README as of 2014)\n============\n\n[![Build Status](https://travis-ci.org/wcdolphin/python-bcrypt.png?branch=master)](https://travis-ci.org/wcdolphin/py-bcrypt)\n\n\nAn up to date fork of py-bcrypt, Python 3 and Python 2 compatible, compiles on Windows, Mac, Linux.\n\nThis repository is a continuation of the [Google Code project](http://code.google.com/p/py-bcrypt/), which has not been updated in more than a year.\nMost notably, this branch compiles under Windows, OSx and Linux, on both Python 3 and Python 2.\nThese patches and this work is community driven, and your contributions will be actively accepted and reviewed.\n\n\n\n### Installation\nInstallation is a breeze! \n\n```sh\n$ pip install python-bcrypt\n```\n\nIf you are running windows, either follow this [guide](http://blog.victorjabur.com/2011/06/05/compiling-python-2-7-modules-on-windows-32-and-64-using-msvc-2008-express/) to configure Python to compile C extensios, or download a [precompiled Windows installer](https://pypi.python.org/pypi?:action=display\u0026name=python-bcrypt\u0026version=0.3.1)!\n\n\n### Usage\n\nSimple example usage is as follows\n\n```python\nimport bcrypt\n\n# Hash a password for the first time\nhashed = bcrypt.hashpw(password, bcrypt.gensalt())\n\n# gensalt's log_rounds parameter determines the complexity\n# the work factor is 2**log_rounds, and the default is 12\nhashed = bcrypt.hashpw(password, bcrypt.gensalt(10))\n\n# Check that an unencrypted password matches one that has\n# previously been hashed\nif bcrypt.hashpw(plaintext, hashed) == hashed:\n\tprint \"It matches\"\nelse:\n\tprint \"It does not match\"\n```\n\n### Support\n\n####This branch is automatically tested on:\n\n* linux Python 2.6\n* linux Python 2.7\n* linux Python 3.2\n* linux Python 3.3\n\n####Manually tested on:\n\nPython 2.7 X86 and Python 2.7 X86-64 \n* Windows 7 32bit and 64bit  Visual C++ 2012 (MSVC11)\n* Windows 7 32bit and 64bit Visual C++ 2010 (MSVC10)\n* Windows 7 32bit and 64bit Visual C++ 2008 (MSVC9) (Same compiler as Python 2.7, suggested)\n* Windows 8 32bit and 64bit Visual C++ 2008 (MSVC9) (Same compiler as Python 2.7, suggested)\n\n\n### Contributing\n\nTo help, clone this repository and get building!\n\nTo install, use the standard Python distutils incantation:\n\n```sh\n$ python setup.py build\n$ python setup.py install\n```\n\nRegression tests are located in `tests/test.py`\n\n### Contributions\n\nThe original authors whose patches are included in this author are:\n\nbenghattem@gmail.com\nProviding the basis for this patch, fixing compilation flags and ifdefs [patch](http://code.google.com/p/py-bcrypt/issues/attachmentText?id=1\u0026aid=10003000\u0026name=py-bcrypt_11.patch\u0026token=EFCIp9qVR4pi3SaJ7kDaVmy3OQc%3A1346047268712)\n\nflorian.ruechel@gmail.com\nExtending the patch and fixing memset + bzero issues to make the code more standards compliant [patch](http://code.google.com/p/py-bcrypt/issues/attachmentText?id=1\u0026aid=10008000\u0026name=py-bcrypt.patch\u0026token=esLPoSRqwBo90FHQ2B_NOyZbtas%3A1346047268714)\n\nOriginal README\n------------\n\n__py-bcrypt__ is an implementation the OpenBSD Blowfish password hashing\nalgorithm, as described in \"A Future-Adaptable Password Scheme\" by Niels\nProvos and David Mazieres: http://www.openbsd.org/papers/bcrypt-paper.ps\n\nThis system hashes passwords using a version of Bruce Schneier's\nBlowfish block cipher with modifications designed to raise the cost of\noff-line password cracking. The computation cost of the algorithm is\nparametised, so it can be increased as computers get faster.\n\npy-bcrypt requires Python 2.4. Older versions may work, but the\nbcrypt.gensalt() method won't - it requires the cryptographic random\nnumber generator os.urandom() introduced in 2.4.\n\nTo install, use the standard Python distutils incantation:\n\n\t$ python setup.py build\n\t$ python setup.py install\n\n\nRegression tests are in the test/test.py file. This is deliberately in\na subdirectory so it does not mistakenly pick up the top-level bcrypt/\ndirectory.\n\npy-bcrypt is licensed under a ISC/BSD licence. The underlying Blowfish\nand password hashing code is taken from OpenBSD's libc. See the LICENSE\nfile for details.\n\nPlease report bugs to Damien Miller \u003cdjm@mindrot.org\u003e. Please check the\nTODO file first, in case your problem is something I already know about\n(please send patches!)\n\nA simple example that demonstrates most of the features:\nA simple example that demonstrates most of the features:\n```\n\timport bcrypt\n\n\t# Hash a password for the first time\n\thashed = bcrypt.hashpw(password, bcrypt.gensalt())\n\n\t# gensalt's log_rounds parameter determines the complexity\n\t# the work factor is 2**log_rounds, and the default is 12\n\thashed = bcrypt.hashpw(password, bcrypt.gensalt(10))\n\n\t# Check that an unencrypted password matches one that has\n\t# previously been hashed\n\tif bcrypt.hashpw(plaintext, hashed) == hashed:\n\t\tprint \"It matches\"\n\telse:\n\t\tprint \"It does not match\"\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fcorydolphin%2Fpython-bcrypt","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fcorydolphin%2Fpython-bcrypt","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fcorydolphin%2Fpython-bcrypt/lists"}