{"id":17912568,"url":"https://github.com/frankie567/pwdlib","last_synced_at":"2025-04-04T16:11:16.655Z","repository":{"id":222160234,"uuid":"755451377","full_name":"frankie567/pwdlib","owner":"frankie567","description":"Modern password hashing for Python","archived":false,"fork":false,"pushed_at":"2025-03-15T10:27:33.000Z","size":67,"stargazers_count":70,"open_issues_count":0,"forks_count":0,"subscribers_count":6,"default_branch":"main","last_synced_at":"2025-03-28T15:04:28.311Z","etag":null,"topics":["hashing","hashing-passwords","password","web"],"latest_commit_sha":null,"homepage":"https://frankie567.github.io/pwdlib/","language":"Python","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/frankie567.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":".github/FUNDING.yml","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},"funding":{"polar":"frankie567"}},"created_at":"2024-02-10T08:43:32.000Z","updated_at":"2025-03-22T00:14:30.000Z","dependencies_parsed_at":"2024-10-28T19:46:12.172Z","dependency_job_id":"2803e6d8-c174-4f2a-8514-86c3879c6934","html_url":"https://github.com/frankie567/pwdlib","commit_stats":null,"previous_names":["frankie567/pwdlib"],"tags_count":3,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/frankie567%2Fpwdlib","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/frankie567%2Fpwdlib/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/frankie567%2Fpwdlib/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/frankie567%2Fpwdlib/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/frankie567","download_url":"https://codeload.github.com/frankie567/pwdlib/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":247208142,"owners_count":20901570,"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":["hashing","hashing-passwords","password","web"],"created_at":"2024-10-28T19:45:58.192Z","updated_at":"2025-04-04T16:11:16.635Z","avatar_url":"https://github.com/frankie567.png","language":"Python","funding_links":["https://polar.sh/frankie567"],"categories":[],"sub_categories":[],"readme":"# pwdlib\n\n\u003cp align=\"center\"\u003e\n    \u003cem\u003eModern password hashing for Python\u003c/em\u003e\n\u003c/p\u003e\n\n[![build](https://github.com/frankie567/pwdlib/workflows/Build/badge.svg)](https://github.com/frankie567/pwdlib/actions)\n[![codecov](https://codecov.io/gh/frankie567/pwdlib/branch/main/graph/badge.svg)](https://codecov.io/gh/frankie567/pwdlib)\n[![PyPI version](https://badge.fury.io/py/pwdlib.svg)](https://badge.fury.io/py/pwdlib)\n[![Downloads](https://pepy.tech/badge/pwdlib)](https://pepy.tech/project/pwdlib)\n\n---\n\n**Documentation**: \u003ca href=\"https://frankie567.github.io/pwdlib/\" target=\"_blank\"\u003ehttps://frankie567.github.io/pwdlib/\u003c/a\u003e\n\n**Source Code**: \u003ca href=\"https://github.com/frankie567/pwdlib\" target=\"_blank\"\u003ehttps://github.com/frankie567/pwdlib\u003c/a\u003e\n\n---\n\n## Quickstart\n\n```sh\npip install 'pwdlib[argon2]'\n```\n\n```py\nfrom pwdlib import PasswordHash\n\npassword_hash = PasswordHash.recommended()\nhash = password_hash.hash(\"herminetincture\")\npassword_hash.verify(\"herminetincture\", hash)  # True\n```\n\n## Why `pwdlib`?\n\nFor years, the de-facto standard to hash passwords was [`passlib`](https://foss.heptapod.net/python-libs/passlib). Unfortunately, it has not been very active recently and its [maintenance status is under question](https://foss.heptapod.net/python-libs/passlib/-/issues/187). Starting Python 3.13, `passlib` won't work anymore.\n\nThat's why I decided to start `pwdlib`, a password hash helper for the modern Python era. However, it's **not designed to be a complete replacement** for `passlib`, which supports numerous [hashing algorithms and features](https://passlib.readthedocs.io/en/stable/lib/index.html).\n\n**✅ Goals**\n\n- [x] Provide an easy-to-use wrapper to hash and verify passwords\n- [x] Support modern and secure algorithms like Argon2 or Bcrypt\n\n**❌ Non-goals**\n\n- [ ] Support legacy hashing algorithms like MD5\n- [ ] Implement algorithms directly — we should only rely on existing and battle-tested implementations\n\n## Development\n\n### Setup environment\n\nWe use [Hatch](https://hatch.pypa.io/latest/install/) to manage the development environment and production build. Ensure it's installed on your system.\n\n### Run unit tests\n\nYou can run all the tests with:\n\n```bash\nhatch run test\n```\n\n### Format the code\n\nExecute the following command to apply linting and check typing:\n\n```bash\nhatch run lint\n```\n\n### Publish a new version\n\nYou can bump the version, create a commit and associated tag with one command:\n\n```bash\nhatch version patch\n```\n\n```bash\nhatch version minor\n```\n\n```bash\nhatch version major\n```\n\nYour default Git text editor will open so you can add information about the release.\n\nWhen you push the tag on GitHub, the workflow will automatically publish it on PyPi and a GitHub release will be created as draft.\n\n## Serve the documentation\n\nYou can serve the Mkdocs documentation with:\n\n```bash\nhatch run docs-serve\n```\n\nIt'll automatically watch for changes in your code.\n\n## License\n\nThis project is licensed under the terms of the MIT license.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ffrankie567%2Fpwdlib","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Ffrankie567%2Fpwdlib","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ffrankie567%2Fpwdlib/lists"}