{"id":20806867,"url":"https://github.com/agentgill/hash_my_password","last_synced_at":"2025-03-12T03:43:43.979Z","repository":{"id":237234060,"uuid":"794089965","full_name":"agentgill/hash_my_password","owner":"agentgill","description":"Simple password hashing script using bcrypt","archived":false,"fork":false,"pushed_at":"2024-05-20T18:49:13.000Z","size":2,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-01-18T13:38:32.021Z","etag":null,"topics":["bcrypt-hashing-library","passlib","python3"],"latest_commit_sha":null,"homepage":"https://passlib.readthedocs.io/en/stable/lib/passlib.hash.bcrypt.html","language":"Python","has_issues":true,"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/agentgill.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,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2024-04-30T12:42:40.000Z","updated_at":"2024-05-20T18:49:16.000Z","dependencies_parsed_at":"2024-04-30T14:12:07.643Z","dependency_job_id":"242be3a9-f13e-4650-b922-386c82d359a0","html_url":"https://github.com/agentgill/hash_my_password","commit_stats":null,"previous_names":["agentgill/hash_my_password"],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/agentgill%2Fhash_my_password","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/agentgill%2Fhash_my_password/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/agentgill%2Fhash_my_password/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/agentgill%2Fhash_my_password/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/agentgill","download_url":"https://codeload.github.com/agentgill/hash_my_password/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":243152875,"owners_count":20244657,"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":["bcrypt-hashing-library","passlib","python3"],"created_at":"2024-11-17T19:27:57.139Z","updated_at":"2025-03-12T03:43:43.956Z","avatar_url":"https://github.com/agentgill.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Hash My Password 🔐\n\nGenerating Secrets and Hashing\n\n## Getting started\n\nCreate virtual envirnonment:\n\n```bash\npython3 -m venv .venv;source .venv/bin/activate\n```\n\nInstall modules:\n\n```bash\npip install -r requirements.txt\n```\n\n## Generate client secret using secrets module\n\nThe secrets module provides secure random number generation suitable for cryptographic purposes. It is designed to be used in scenarios where randomness is critical for security, such as generating authentication tokens, session keys, or password reset codes.\n\nUsage:\n\n```bash\npython generate-secret.py\n```\n\nOutput:\n\n```bash\n9c10b72b5e866507837d5d4958533e628c4cd63b80da0c1376bcd193dc6bafb3\n```\n\n## Simple password hashing script using bcrypt module\n\nThis script provides a simple way to securely hash and verify passwords using the bcrypt module. The hashed passwords can be stored in a database or file, and when a user provides a password, you can compare it with the stored hashed password to verify its validity.\n\n- \u003chttps://passlib.readthedocs.io/en/stable/install.html\u003e\n\nCheck:\n\n```bash\npython -c \"from passlib.context import CryptContext; print('Passlib is installed!')\"\n```\n\nUsage:\n\n```bash\npython hash_mypwd.py hash 9c10b72b5e866507837d5d4958533e628c4cd63b80da0c1376bcd193dc6bafb3\n```\n\nOutput:\n\n```bash\nPassword to be hashed: 9c10b72b5e866507837d5d4958533e628c4cd63b80da0c1376bcd193dc6bafb3\nHashed password: $2b$12$vQNuEjJIhgEiLAZul8cT/.NtrnxvrcqBBHWRsbinp6bPaRzA5nwtW\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fagentgill%2Fhash_my_password","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fagentgill%2Fhash_my_password","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fagentgill%2Fhash_my_password/lists"}