{"id":19154839,"url":"https://github.com/rgrannell1/polonium","last_synced_at":"2025-05-07T06:32:03.165Z","repository":{"id":17457885,"uuid":"20231867","full_name":"rgrannell1/polonium","owner":"rgrannell1","description":"stateless password manager.","archived":false,"fork":false,"pushed_at":"2024-06-18T19:41:25.000Z","size":1658,"stargazers_count":4,"open_issues_count":0,"forks_count":1,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-05-02T01:44:06.371Z","etag":null,"topics":["command-line","password","security","stateless"],"latest_commit_sha":null,"homepage":"","language":"JavaScript","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/rgrannell1.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":"2014-05-27T19:06:59.000Z","updated_at":"2024-06-18T19:41:22.000Z","dependencies_parsed_at":"2023-01-13T19:20:39.867Z","dependency_job_id":"9b125a6f-3b9d-43c0-945a-39e6e34511af","html_url":"https://github.com/rgrannell1/polonium","commit_stats":null,"previous_names":[],"tags_count":3,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/rgrannell1%2Fpolonium","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/rgrannell1%2Fpolonium/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/rgrannell1%2Fpolonium/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/rgrannell1%2Fpolonium/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/rgrannell1","download_url":"https://codeload.github.com/rgrannell1/polonium/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":252826772,"owners_count":21810183,"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":["command-line","password","security","stateless"],"created_at":"2024-11-09T08:28:34.958Z","updated_at":"2025-05-07T06:32:03.146Z","avatar_url":"https://github.com/rgrannell1.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"Polonium v1.2.0\n========\n\n\u003cimg src=\"polonium.gif\"\u003e \u003c/img\u003e\n\nPolonium is a stateless password manager that creates\n\u0026 retrieves passwords without storing them in a database.\nThe advantages to this approach;\n\n- your database can't be stolen\n- you can get your passwords anywhere you can get polonium.\n\nPolonium only requires you to remember one master password, from which it\nderives subordinate passwords for your various service logins. Even if these\nsubordinate passwords are compromised the attacker cannot compromise your\nmaster password.\n\n## Usage\n\n```sh\npolonium get github\n```\n\n## Build\n\n```\nsudo snapcraft build --use-lxd\n```\n\nNote that most of the logic in this program is performed by https://github.com/rgrannell1/polonium-lib.\n\n## Installation\n\n### Snapcraft\n\nTo install polonium quickly, use:\n\n```bash\nsudo snap install polonium\n```\n\n### Git + NPM\n\nRun the following commands through Powershell:\n\n```sh\ngit clone https://github.com/rgrannell1/polonium.git\ncd polonium\nnpm install -g\n```\n\n## Files\n\n```\nsrc/\n  app/\n    fetch-master-password.js     reads the master password interactively.\n    polonium.js                  the core application.\n    report.js                    displays an output password.\n  cli/\n    cli.js                       the cli implementation.\n  commons/\n    constants.js                 a file full of constants.\n```\n\n---\n\n### Details\n\nPolonium is a shallow wrapper around node.js's implementation of\nPassword-Based Key Derivation Function 2 (PBKDF2); all polonium adds is\na method of gathering command-line arguments and converting the derived\nkeys to base62.\n\nFor more information on PBKDF2 see the following resources:\n\n* [Wikipedia Page](https://en.wikipedia.org/wiki/PBKDF2)\n\n* [NIST Recommendations](http://csrc.nist.gov/publications/nistpubs/800-132/nist-sp800-132.pdf)\n\n#### - Master Password\n\nYou must not use your master password anywhere it might be compromised; if your\nmaster password is known to an attacker, all polonium-derived passwords can also be\ncracked easily.\n\nA good, XKCD-approved method of making a master password is to take you favourite large\ndictionary - for example the Oxford English Dictionary - and choose five\nor more random words as your password.\n\n\u003cimg src=\"http://imgs.xkcd.com/comics/password_strength.png\" title=\"To anyone who understands information theory and security and is in an infuriating argument with someone who does not (possibly involving mixed case), I sincerely apologize.\" alt=\"Password Strength\" width=\"500\" /\u003e\n\nTaking the OED as an example, choosing five of its 170,000 words gets you 86 bits of entropy. If the\nattacker does not know your choice of dictionary your security depends on the length of your\npassword.\n\n#### - Iterations \u0026 Performance\n\nModern GPU-based cracking can make billions of attempts a day at password cracking, so even\npasswords made by secure hashing algorithms can be cracked quickly. Polonium, or more accurately PBKDF2,\nuses key-stretching to slow down brute force attacks.\n\nHigh iteration counts waste the attacker's time and raises their electric bill, so polonium\nspitefully defaults to a costly 1,000,000 iterations.\n\nIf this is too hard on your battery / device, set poloniums iterations to a number\npreferably above 200,000 iterations.\n\n#### - Password Encoding\n\nPolonium passwords are base62-encoded. Although base16 and base64 are more common,\nBase62 (alphanumeric) passwords are generally permitted by online services\nand are entropy-dense compared to base16 passwords. Even short base62 passwords\nexceed the recommended minimum of 80-bits of entropy per password.\n\n### - Security Notes\n\nPolonium passwords only have *application* specific salts, not user-specific salts.\nTwo users that share a salt ('facebook') and master password ('password123') will share\nthe same output password. For this and many other reasons, **use a unique master password.**\n\n* Currently untested.\n\n\n## Changelog\n\n### v1.2.0 [ 2020 August 17 ]\n\n**ENHANCEMENTS**\n- Added group option to group passwords into discreet groups of characters.\n\n### v1.1.0 [ 2020 March 29 ]\n\n**ENHANCEMENTS:**\n* Updated packages\n\n### v1.0.0 [ 2019 June 15 ]\n\n**ENHANCEMENTS:**\n\n- Added slightly more documentation about the default SHA hash\n- Added a `--line` option, which prints each character of a password along with it's indices\n\n**PACKAGE-INTERNALS:**\n\n- Remove Makefile \u0026 switched to NPM scripts\n- Add `base` to snap package\n\n### v0.5.1 [ 2015 February 14 ]\n\n**ENHANCMENTS:**\n\n- Ported more code to `use ES6\n- Reduces poor code factoring and fixed poor folder `structure.\n- Added short options for length and rounds `arguments.\n- Removed (node-gyp depending) bignum package, refactoring to use a JS-only `package.\n\n### v0.4.1 [ 2015 December 31 ]\n\nENHANCMENTS:\n\n- Ported some code to use ES6 features.\n- Updated package structure.\n- Code now uses strict-mode.\n- Minor updates to documentation.\n- Added explicit npm version dependencies.\n- Added (docker) installation testing.\n- Added recommeded fields to package.json\n- Fixed (accidental?) use of global variables.\n\n### v0.3.1 [ 2014 August 27 ]\n\n**ENHANCMENTS:**\n\n- Made it much easier to install polonium on Ubuntu.\n\n**PACKAGE-INTERNALS:**\n\n- Seperated polonium's main function from it's docopt interface, to\nhelp transition to using this package as a dependency for polonium-gui.\n- Started adding unit tests for polonium.\n\n### v0.2.1 [ 2014 August 22 ]\n\n**ENHANCMENTS:**\n\n- Officially declared support for Windows, though no actual code changes\nwere required.\n\n**DOCUMENTATION:**\n\n- Added installation instructions for Windows, not currently tested.\n\n**BUG-FIXES:**\n\n- Added a newline missing from the error message displayed when\nthe password prompt is exited.\n\n### v0.2.0 [ 2014 August 18 ]\n\n**BUG-FIXES:**\n\n- Fixed a long-outstanding security issue in Polonium. Approximately\n11% of salt-password pairs could not be correctly coerced to a base62\nstring for output. This update is not back compatible; you must reset\nall polonium passwords.\n\n### v0.1.0 [ 2014 June 4 ]\n\nThe initial release.\n\n## Licence\n\nThe MIT License\n\nCopyright (c) 2020 Róisín Grannell\n\nPermission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the \"Software\"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:\n\nThe above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.\n\nTHE SOFTWARE IS PROVIDED \"AS IS\", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Frgrannell1%2Fpolonium","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Frgrannell1%2Fpolonium","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Frgrannell1%2Fpolonium/lists"}