{"id":22491908,"url":"https://github.com/travishorn/diceware-js","last_synced_at":"2025-03-27T20:24:15.405Z","repository":{"id":42221155,"uuid":"170588375","full_name":"travishorn/diceware-js","owner":"travishorn","description":"Cryptographically-secure electronic implementation of the Diceware Passphrase method in JavaScript.","archived":false,"fork":false,"pushed_at":"2023-03-04T03:09:11.000Z","size":852,"stargazers_count":1,"open_issues_count":5,"forks_count":0,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-02-01T22:46:19.389Z","etag":null,"topics":["crypto","cryptography","diceware","passphrase","password","security"],"latest_commit_sha":null,"homepage":null,"language":"JavaScript","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/travishorn.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":"2019-02-13T22:20:37.000Z","updated_at":"2021-05-06T20:58:19.000Z","dependencies_parsed_at":"2023-02-18T10:10:23.777Z","dependency_job_id":null,"html_url":"https://github.com/travishorn/diceware-js","commit_stats":null,"previous_names":[],"tags_count":18,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/travishorn%2Fdiceware-js","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/travishorn%2Fdiceware-js/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/travishorn%2Fdiceware-js/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/travishorn%2Fdiceware-js/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/travishorn","download_url":"https://codeload.github.com/travishorn/diceware-js/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":245917928,"owners_count":20693608,"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":["crypto","cryptography","diceware","passphrase","password","security"],"created_at":"2024-12-06T18:12:20.831Z","updated_at":"2025-03-27T20:24:15.374Z","avatar_url":"https://github.com/travishorn.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Diceware JS\n\nCryptographically-secure electronic implementation of the [Diceware Passphrase method](http://world.std.com/~reinhold/diceware.html) in JavaScript.\n\n## Installation\n\n### Production\n\n```\n\u003e npm i @travishorn/diceware\n```\n\n### Development\n\n```\n\u003e git clone https://github.com/travishorn/diceware-js.git\n\u003e cd diceware-js\n\u003e npm i\n```\n\n## Usage\n\nThis package is [promise](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Promise)-based.\n\n```javascript\nconst diceware = require('@travishorn/diceware');\n\ndiceware()\n  .then((passphrase) =\u003e {\n    console.log(passphrase);\n  });\n\n// ought amigo dow hebe send\n```\n\n## Options\n\n### words\n\nThe number of words to be used in the passphrase.\n\nDefault: `5`\n\n```javascript\ndiceware({ words: 8 });\n// verne foss tog soup lawn legion hyde krebs\n```\n\n### list\n\nWhich diceware list from which to pull words.\n\nDefault: `'Arnold G. Reinhold'`\n\n```javascript\ndiceware({ list: 'EFF Short' });\n// ditto gem evidence zestfully septum\n```\n\nSupported lists:\n\n- `Alan Beale`\n- `Arnold G. Reinhold`\n- `EFF General Short`\n- `EFF Short`\n- `EFF Long`\n\n### output\n\nThe type of output.\n\nDefault: `'string'`\n\n```javascript\ndiceware({ output: 'array' });\n// [ 'laze', 'sx', 'dope', 'cagey', 'papaw' ]\n```\n\nSupported types:\n\n- `array`\n- `string`\n\n## Testing\n\nTests are in the `test` directory. Run them with:\n\n```\n\u003e npm test\n```\n\n## Linting\n\nLint all files.\n\n```\n\u003e npm run lint\n```\n\nAutomatically fix some problems.\n\n```\n\u003e npm run lint:fix\n```\n\n## License\n\nThe MIT License\n\nCopyright 2019 Travis Horn\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%2Ftravishorn%2Fdiceware-js","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Ftravishorn%2Fdiceware-js","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ftravishorn%2Fdiceware-js/lists"}