{"id":21806796,"url":"https://github.com/roguh/pympw","last_synced_at":"2026-02-17T00:33:03.455Z","repository":{"id":62581897,"uuid":"145694357","full_name":"roguh/pympw","owner":"roguh","description":"A Python implementation of the Master Password algorithm v3 with a nice Linux CLI","archived":false,"fork":false,"pushed_at":"2021-09-08T05:38:27.000Z","size":35,"stargazers_count":3,"open_issues_count":1,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-12-26T21:10:45.004Z","etag":null,"topics":["cli","crypto","linux","master-password","master-password-v3","pass","password-generator","password-manager","python","scrypt"],"latest_commit_sha":null,"homepage":"http://www.masterpasswordapp.com/masterpassword-algorithm.pdf","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/roguh.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":"2018-08-22T10:35:49.000Z","updated_at":"2024-01-30T07:45:01.000Z","dependencies_parsed_at":"2022-11-03T21:34:27.091Z","dependency_job_id":null,"html_url":"https://github.com/roguh/pympw","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/roguh/pympw","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/roguh%2Fpympw","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/roguh%2Fpympw/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/roguh%2Fpympw/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/roguh%2Fpympw/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/roguh","download_url":"https://codeload.github.com/roguh/pympw/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/roguh%2Fpympw/sbom","scorecard":{"id":782874,"data":{"date":"2025-08-11","repo":{"name":"github.com/roguh/pympw","commit":"b54132b26a2689b659f2dc859023e88ef829d905"},"scorecard":{"version":"v5.2.1-40-gf6ed084d","commit":"f6ed084d17c9236477efd66e5b258b9d4cc7b389"},"score":2.6,"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/30 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":"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":"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":"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":"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":"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":"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":"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":0,"reason":"license file not detected","details":["Warn: project does not have a license file"],"documentation":{"short":"Determines if the project has defined a license.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#license"}},{"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":"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 'main'"],"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-23T05:19:24.411Z","repository_id":62581897,"created_at":"2025-08-23T05:19:24.411Z","updated_at":"2025-08-23T05:19:24.411Z"},"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":29526813,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-02-16T21:45:09.491Z","status":"ssl_error","status_checked_at":"2026-02-16T21:44:58.452Z","response_time":115,"last_error":"SSL_read: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"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":["cli","crypto","linux","master-password","master-password-v3","pass","password-generator","password-manager","python","scrypt"],"created_at":"2024-11-27T12:29:57.396Z","updated_at":"2026-02-17T00:33:03.436Z","avatar_url":"https://github.com/roguh.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"# pympw: CLI and Implementation of Master Password v3 --- An Algorithm for Freedom\n\nMaster Password is a determnistic password generator.\nThis is a Python implementation of the Master Password algorithm v3 based on \n[mpw-js](https://github.com/tmthrgd/mpw-js).\n\nI faithfully implemented the [algorithm](http://www.masterpasswordapp.com/masterpassword-algorithm.pdf) for a cool password manager in a few dozen lines of Python. Please note **this code is for demonstration purposes only.** If you want to use a reliable deterministic password manager, get one at [masterpassword.app](http://masterpassword.app).\n\n## **Features**\n\n- ✔ Faithful and concise implementation of Master Password v3 using standard Python crypto libraries **scrypt, hmac, and digest.sha256**.\n- ✔ *Quick password generation* for a single site.\n- ✔ Generate long passwords, PINs, or even memorable phrases \n- ✔ Intuitive interactive session. *Type your master password once and request site passwords as you go!*\n- ✔ Copy passwords to your clipboard --- *never print passwords out at all!*\n- ✔ Interactive session can timeout after a few minutes to *protect your privacy*\n- ✔ Support for counter and *all* MPv3 password template classes (maximum, long, medium, basic, short, PIN, name, and phrase)\n\n## Installation\n\nInstall `pympw` through PyPI or locally.\n\n```\n$ pip install pympw\n```\n\n```\ngit clone --depth=1 https://github.com/roguh/pympw\ncd pympw \npip install .\n```\n\n### Dependencies\n\nIf you don't want pip to install dependencies, make sure to install the Python packages `scrypt` and `pyperclip`.\n\n## CLI Usage\n\n### Single site password with one command\n\nGenerate a password with a single command\n\n```\n$ python3 bin/pympw -n USER --type long -s google.com -c 20000\nplease type your master password \u003e\nsite=google.com, type=long, counter=20000\nVode7.QojfDeqa\n```\n\n### Interactive mode\n\nEnter interactive mode by omitting the `--site` argument. Type `CTRL-D` or `quit` to quit.\n\n```\n $ pympw -n USER\nplease type your master password \u003e\nplease type site name \u003e google.com\nplease type counter or ENTER for default=1 \u003e 20000\nplease type type or ENTER for default=long \u003e\nVode7.QojfDeqa\nplease type site name \u003e quit\nbye\n```\n\n### More concise interactive mode\n\nEnter alternative interactive mode\n\n```\n $ python3 pympw -n USER -b/\nplease type your master password \u003e\nplease type site name[/type[/counter]] \u003e google.com\nKasi2/FipsHonm\nplease type site name[/type[/counter]] \u003e google.com/pin\n7002\nplease type site name[/type[/counter]] \u003e google.com/medium/3\nWap4/Voy\nplease type site name[/type[/counter]] \u003e google.com/x\ni%\u0026yc(sRV7VJqOQK%G0~\nplease type site name[/type[/counter]] \u003e quit\nbye\n```\n\n### Complete examples \n\nUse `--copy` to copy password to clipboard.\n\n```\n$ pympw -n USER --copy --type x\nplease type your master password \u003e\nplease type site name \u003e github.com\nplease type counter or ENTER for default=1 \u003e\nplease type type or ENTER for default=x \u003e\npassword copied to clipboard\nE(%MMCBruYhaPEV6bM7^\n```\n\nUse `--exit-after` to shutdown interactive mode after some number of seconds.\nUse `--quiet` to print less output.\nUse `--keepalive` to reschedule timeout if you're still using the program.\n\n```\n$ pympw --name USER --type maximum --quiet --copy --splitby / \\\n    --keepalive --exit-after \"$((60 * 5))\" \\\n    --exit-command 'notify-send \"MasterPassword is now closed\"'\nmaster password \u003e\nsite name[/type[/counter]] \u003e google.com/l/20000\nVode7.QojfDeqa\nsite name[/type[/counter]] \u003e google.com\ni%\u0026yc(sRV7VJqOQK%G0~\nsite name[/type[/counter]] \u003e 300 second timeout reached\nbye\n```\n\n### All options \n\n```\n$ pympw -h\nusage: pympw [-h] [--name NAME] [--site SITE] [--counter COUNTER] [--quiet]\n                  [--copy] [--hide-pw] [--splitby SPLITBY] [--keepalive]\n                  [--exit-after EXIT_AFTER] [--exit-command EXIT_COMMAND]\n                  [--type {maximum,x,long,l,medium,m,basic,b,short,s,longbasic,lb,pin,#,name,n,phrase,ph}]\n\nCLI to Master Password algorithm v3. Passwords are generated locally, your\nmaster password is not sent to any server. http://masterpassword.app\n\noptional arguments:\n -h, --help            show this help message and exit\n --name NAME, -n NAME  your full name\n --site SITE, -s SITE  site name (e.g. linux.org). omit this argument to\n                       start an interactive session.\n --counter COUNTER, -c COUNTER\n                       positive integer less than 2**31=4294967296\n --type {maximum,x,long,l,medium,m,basic,b,short,s,longbasic,lb,pin,#,name,n,phrase,ph}\n                       password type\n --copy, -y            copy password to clipboard instead of printing it\n --hide-pw, -d         never print passwords\n --splitby SPLITBY, -b SPLITBY\n                       more efficient interactive session. suggested values:\n                       tab, space, or '/'\n --exit-after EXIT_AFTER, -e EXIT_AFTER\n                       script will timeout and close after this many seconds\n --exit-command EXIT_COMMAND\n                       run this command if the script times out\n --keepalive, -k       keep program from timing out by pressing ENTER\n --quiet, -q           less output\n```\n\n\n## Bash Autocompletion\n\nIf you have `pympw` in your path and you have BASH, run the following command\nto get autocompletion.\n\n```\n$ eval \"$(register-python-argcomplete pympw)\n```\n\nIf you have tcsh, run\n\n```\neval `register-python-argcomplete --shell tcsh pympw`\n```\n\nThis script also supports argcomplete's global completion mode.\nSee the [argcomplete docs](https://argcomplete.readthedocs.io/en/latest/) for how to enable it.\n\n## Library Usage\n\n```\n\u003e from pympw import site_password, master_key, template_class_names \n```\n\nSee all template classes available \n\n```\n\u003e template_class_names \n['maximum',\n 'x',\n 'long',\n 'l',\n 'medium',\n 'm',\n 'basic',\n 'b',\n 'short',\n 's',\n 'longbasic',\n 'lb',\n 'pin',\n '#',\n 'name',\n 'n',\n 'phrase',\n 'ph']\n```\n\nGenerate a master key (\u003e1sec)\n\n```\n\u003e master_key = master_key(b'USER', b'PASSWORD')\nb'\\xc8\\xf2\\xc7\\xd3\u003c(\\x05\\xaf\\xf8ng\\xfb\\xb2\\x06\\xab6\\x83\\xfc\\x85m\\xcb\\xa3$c\\xb7\\xc6I\\x93\\x01\\xc7\\xeb+\\x810\\xb2\\xf2\\x84\\xa3f\\xb7\\xf0R\\x9c_\\xf1\\xb3b\\xa2\\x99\\xcb\\xd3\\x97`\\xab_\\xef\\x89\\xe6S\\xe7\\x84LM\\xee'\n```\n\nGenerate a password\n\n```\n\u003e site_password(master_key=master_key, site_name='google.com', template_class='long', counter=20000)\n'Vode7.QojfDeqa'\n```\n\n## Running tests\n\n```\n$ python3 setup.py test\n============================== test session starts ===============================\nplatform linux -- Python 3.7.0, pytest-3.6.4, py-1.5.4, pluggy-0.7.1\ncollected 3 items                                                                \n\npympw/tests/test_master_password_v3.py ...                       [100%]\n\n============================ 3 passed in 0.62 seconds ============================\n```\n\n## Authors\n\nMaster Password is a security product and algorithm by [Maarten Billemont](http://lhunath.com/), [Lyndir](http://www.lyndir.com/).\n\nThis Python implementation was created by Hugo Rivera.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Froguh%2Fpympw","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Froguh%2Fpympw","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Froguh%2Fpympw/lists"}