{"id":21442092,"url":"https://github.com/norskeld/diceware","last_synced_at":"2025-07-14T17:32:43.202Z","repository":{"id":38412835,"uuid":"446768703","full_name":"norskeld/diceware","owner":"norskeld","description":"Rust crate and CLI for generating Diceware passphrases.","archived":false,"fork":false,"pushed_at":"2024-04-16T11:29:18.000Z","size":95,"stargazers_count":7,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2024-04-16T14:37:25.676Z","etag":null,"topics":["cli","diceware","hacktoberfest","passphrase-generator","rust"],"latest_commit_sha":null,"homepage":"","language":"Rust","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/norskeld.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,"governance":null,"roadmap":null,"authors":null,"dei":null}},"created_at":"2022-01-11T10:08:03.000Z","updated_at":"2024-04-07T21:54:11.000Z","dependencies_parsed_at":"2024-03-25T10:56:48.705Z","dependency_job_id":null,"html_url":"https://github.com/norskeld/diceware","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/norskeld%2Fdiceware","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/norskeld%2Fdiceware/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/norskeld%2Fdiceware/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/norskeld%2Fdiceware/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/norskeld","download_url":"https://codeload.github.com/norskeld/diceware/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":225990484,"owners_count":17556153,"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":["cli","diceware","hacktoberfest","passphrase-generator","rust"],"created_at":"2024-11-23T01:48:34.776Z","updated_at":"2024-11-23T01:48:35.198Z","avatar_url":"https://github.com/norskeld.png","language":"Rust","funding_links":[],"categories":[],"sub_categories":[],"readme":"# `⁙` diceware\n\n[![Checks](https://img.shields.io/github/actions/workflow/status/norskeld/diceware/check.yml?style=flat-square\u0026colorA=22272d\u0026colorB=22272d\u0026label=checks)](https://github.com/norskeld/diceware/actions)\n\nRust crate and CLI for generating strong [Diceware] passphrases.\n\n## Installation\n\n### macOS Intel (Homebrew)\n\n```shell\nbrew tap norskeld/tap\nbrew install norskeld/tap/diceware\n```\n\n### macOS / Linux / Windows (Cargo)\n\nMake sure to [install Rust toolchain][rust-toolchain] first. After that you can install Diceware via **Cargo**:\n\n```shell\ncargo install --locked --git https://github.com/norskeld/diceware\n```\n\n## CLI usage\n\nJust invoke `diceware --help`. It's really simple.\n\n```shell\nGenerates strong Diceware passphrases.\n\nUsage: diceware [OPTIONS]\n\nOptions:\n  -l, --length \u003cLENGTH\u003e        How much words to generate [default: 6]\n  -w, --wordlist \u003cWORDLIST\u003e    Path to a custom wordlist\n  -e, --entropy                Show entropy of the passphrase\n  -c, --capitalize             Capitalize words\n  -d, --delimiter \u003cDELIMITER\u003e  Delimiter to use for joining words\n  -p, --preset \u003cPRESET\u003e        Formatting preset to use [possible values: pascal, kebab, snake]\n  -h, --help                   Print help\n  -V, --version                Print version\n```\n\n## Example of output\n\n```shell\n$ diceware --entropy\n\nprobation overdraft debtor ground nintendo sculptor\n\nPossibilities: 7776\nEntropy: 77.55 bits\n\nMore about entropy at https://theworld.com/~reinhold/dicewarefaq.html#entropy\n```\n\n## Crate usage\n\nYou can use this crate as a git dependency:\n\n```toml\n[dependencies]\ndiceware = { git = \"https://github.com/norskeld/diceware\" }\n```\n\nSimple example:\n\n```rust\nuse diceware::{Passphraser, Preset};\n\nfn main() {\n  let passphrase = Passphraser::new(6)\n    .preset(Preset::KebabCase)\n    .generate();\n\n  println!(\"{}\", passphrase.format())\n}\n```\n\n## Notes\n\nBy default CLI uses the [EFF long wordlist][eff-long-wordlist], which is a little bit better than the one original one.\n\n## Diceware\n\nIn short, passphrases are generated by \"throwing\" a dice five times, joining the numbers into one, and then looking up for the word with the corresponding number in the wordlist. This process repeats N times (default is **6**) until all words are found. You can find more information about that technique on [the official Diceware page][diceware-official] or on [the Diceware FAQ page][diceware-faq].\n\n## License\n\n[MIT](LICENSE).\n\n\u003c!-- Links. --\u003e\n\n[diceware]: https://en.wikipedia.org/wiki/Diceware\n[eff-long-wordlist]: https://eff.org/deeplinks/2016/07/new-wordlists-random-passphrases\n[formula]: https://docs.brew.sh/Formula-Cookbook\n[eff-wordlist]: https://eff.org/deeplinks/2016/07/new-wordlists-random-passphrases\n[diceware-official]: https://theworld.com/~reinhold/diceware.html\n[diceware-faq]: https://theworld.com/~reinhold/dicewarefaq.html\n[rust-toolchain]: https://www.rust-lang.org/tools/install\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fnorskeld%2Fdiceware","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fnorskeld%2Fdiceware","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fnorskeld%2Fdiceware/lists"}