{"id":38862583,"url":"https://github.com/everlastingbeta/diceware","last_synced_at":"2026-01-20T16:25:37.768Z","repository":{"id":38319757,"uuid":"218535286","full_name":"everlastingbeta/diceware","owner":"everlastingbeta","description":"Golang library for the creation of a Diceware passphrase","archived":false,"fork":false,"pushed_at":"2025-12-03T04:01:22.000Z","size":264,"stargazers_count":0,"open_issues_count":2,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-12-04T17:40:29.753Z","etag":null,"topics":["diceware","diceware-passphrase-generator","golang","library"],"latest_commit_sha":null,"homepage":null,"language":"Go","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/everlastingbeta.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,"publiccode":null,"codemeta":null,"zenodo":null,"notice":null,"maintainers":null,"copyright":null,"agents":null,"dco":null,"cla":null}},"created_at":"2019-10-30T13:34:50.000Z","updated_at":"2025-12-02T02:02:29.000Z","dependencies_parsed_at":"2024-02-19T04:34:19.840Z","dependency_job_id":"b52a93ff-2884-44c2-974f-3c03cb56749c","html_url":"https://github.com/everlastingbeta/diceware","commit_stats":null,"previous_names":[],"tags_count":8,"template":false,"template_full_name":null,"purl":"pkg:github/everlastingbeta/diceware","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/everlastingbeta%2Fdiceware","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/everlastingbeta%2Fdiceware/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/everlastingbeta%2Fdiceware/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/everlastingbeta%2Fdiceware/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/everlastingbeta","download_url":"https://codeload.github.com/everlastingbeta/diceware/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/everlastingbeta%2Fdiceware/sbom","scorecard":{"id":386483,"data":{"date":"2025-08-11","repo":{"name":"github.com/everlastingbeta/diceware","commit":"101bb98cce777fb0f3fd923293be72d34331a55d"},"scorecard":{"version":"v5.2.1-40-gf6ed084d","commit":"f6ed084d17c9236477efd66e5b258b9d4cc7b389"},"score":3.4,"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/6 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":"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":"Dangerous-Workflow","score":10,"reason":"no dangerous workflow patterns detected","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":"Pinned-Dependencies","score":0,"reason":"dependency not pinned by hash detected -- score normalized to 0","details":["Warn: GitHub-owned GitHubAction not pinned by hash: .github/workflows/golangci-lint.yml:16: update your workflow using https://app.stepsecurity.io/secureworkflow/everlastingbeta/diceware/golangci-lint.yml/main?enable=pin","Warn: third-party GitHubAction not pinned by hash: .github/workflows/golangci-lint.yml:18: update your workflow using https://app.stepsecurity.io/secureworkflow/everlastingbeta/diceware/golangci-lint.yml/main?enable=pin","Warn: GitHub-owned GitHubAction not pinned by hash: .github/workflows/test.yml:20: update your workflow using https://app.stepsecurity.io/secureworkflow/everlastingbeta/diceware/test.yml/main?enable=pin","Warn: GitHub-owned GitHubAction not pinned by hash: .github/workflows/test.yml:24: update your workflow using https://app.stepsecurity.io/secureworkflow/everlastingbeta/diceware/test.yml/main?enable=pin","Info:   0 out of   3 GitHub-owned GitHubAction dependencies pinned","Info:   0 out of   1 third-party GitHubAction dependencies pinned"],"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":"Maintained","score":0,"reason":"1 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":"Token-Permissions","score":0,"reason":"detected GitHub workflow tokens with excessive permissions","details":["Warn: no topLevel permission defined: .github/workflows/golangci-lint.yml:1","Warn: no topLevel permission defined: .github/workflows/test.yml:1","Info: no jobLevel write permissions found"],"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":"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":"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":"License","score":10,"reason":"license file detected","details":["Info: project has a license file: LICENSE:0","Info: FSF or OSI recognized license: MIT License: LICENSE:0"],"documentation":{"short":"Determines if the project has defined a license.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#license"}},{"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"}},{"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":"SAST","score":0,"reason":"SAST tool is not run on all commits -- score normalized to 0","details":["Warn: 0 commits out of 25 are checked with a SAST tool"],"documentation":{"short":"Determines if the project uses static code analysis.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#sast"}}]},"last_synced_at":"2025-08-18T16:46:11.355Z","repository_id":38319757,"created_at":"2025-08-18T16:46:11.355Z","updated_at":"2025-08-18T16:46:11.355Z"},"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":28509945,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-01-17T13:38:16.342Z","status":"ssl_error","status_checked_at":"2026-01-17T13:37:44.060Z","response_time":85,"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":["diceware","diceware-passphrase-generator","golang","library"],"created_at":"2026-01-17T14:23:04.473Z","updated_at":"2026-01-17T14:23:04.526Z","avatar_url":"https://github.com/everlastingbeta.png","language":"Go","funding_links":[],"categories":[],"sub_categories":[],"readme":"# diceware v2\n\nA comprehensive Go library for generating secure, memorable diceware passphrases with enhanced features, flexibility, and cryptographic security.\n\n[![PkgGoDev](https://pkg.go.dev/badge/everlastingbeta/diceware)](https://pkg.go.dev/github.com/everlastingbeta/diceware)\n[![Go Report Card](https://goreportcard.com/badge/everlastingbeta/diceware?style=flat-square)](https://goreportcard.com/report/everlastingbeta/diceware)\n![test](https://github.com/everlastingbeta/diceware/workflows/test/badge.svg)\n![golangci-lint](https://github.com/everlastingbeta/diceware/workflows/golangci-lint/badge.svg)\n\n## What's New in v2\n\n- **Improved API** with a flexible configuration system\n- **Default options** for quick, secure passphrase generation\n- **Enhanced testability** with RandomSource interface\n- **Comprehensive documentation** throughout the codebase\n- **Improved error handling** with detailed error messages\n- **Backward compatibility** with v1 API\n\n## Background Information\n\n- [Diceware homepage](http://diceware.com)\n- [Wikipedia](https://en.wikipedia.org/wiki/Diceware)\n\n## Installation\n\n```sh\ngo get -u github.com/everlastingbeta/diceware/v2\n```\n\n## Usage\n\n### Simple API (Using Defaults)\n\n```go\npackage main\n\nimport (\n  \"fmt\"\n\n  \"github.com/everlastingbeta/diceware/v2\"\n)\n\nfunc main() {\n  // Generate a passphrase with sensible defaults\n  // (6 words, space separator, EFF Long wordlist, no enhanced entropy)\n  passphrase, err := diceware.RollWords(diceware.DefaultOptions())\n  if err != nil {\n    panic(err)\n  }\n\n  fmt.Println(\"Default passphrase:\", passphrase)\n}\n```\n\n### Configurable API\n\n```go\npackage main\n\nimport (\n  \"fmt\"\n\n  \"github.com/everlastingbeta/diceware/v2\"\n  \"github.com/everlastingbeta/diceware/v2/wordlist\"\n)\n\nfunc main() {\n  // Create custom options\n  options := diceware.PassphraseOptions{\n    WordCount:      8,\n    Separator:      \"-\",\n    Wordlist:       wordlist.EFFLong,\n    EnhanceEntropy: true,\n  }\n\n  // Generate passphrase with custom options\n  passphrase, err := diceware.RollWords(options)\n  if err != nil {\n    panic(err)\n  }\n\n  fmt.Println(\"Custom passphrase:\", passphrase)\n}\n```\n\n### Comprehensive Example\n\n```go\npackage main\n\nimport (\n  \"fmt\"\n\n  \"github.com/everlastingbeta/diceware/v2\"\n  \"github.com/everlastingbeta/diceware/v2/wordlist\"\n)\n\nfunc main() {\n  // Example 1: Using the new API with DefaultOptions\n  defaultOpts := diceware.DefaultOptions()\n  defaultPassphrase, err := diceware.RollWords(defaultOpts)\n  if err != nil {\n    panic(err)\n  }\n  fmt.Println(\"Default options passphrase:\", defaultPassphrase)\n\n  // Example 2: EFF Long wordlist with custom settings\n  effLongOpts := diceware.DefaultOptions()\n  effLongOpts.WordCount = 8\n  effLongOpts.Separator = \"-\"\n  effLongPassphrase, err := diceware.RollWords(effLongOpts)\n  if err != nil {\n    panic(err)\n  }\n  fmt.Println(\"EFF Long wordlist passphrase:\", effLongPassphrase)\n\n  // Example 3: EFF Long wordlist with enhanced entropy\n  enhancedOpts := diceware.DefaultOptions()\n  enhancedOpts.WordCount = 8\n  enhancedOpts.Separator = \"+\"\n  enhancedOpts.EnhanceEntropy = true\n  enhancedPassphrase, err := diceware.RollWords(enhancedOpts)\n  if err != nil {\n    panic(err)\n  }\n  fmt.Println(\"Enhanced entropy passphrase:\", enhancedPassphrase)\n\n  // Example 4: EFF Short wordlist\n  shortOpts := diceware.PassphraseOptions{\n    WordCount: 8,\n    Separator: \"-\",\n    Wordlist:  wordlist.EFFShort,\n  }\n  effShortPassphrase, err := diceware.RollWords(shortOpts)\n  if err != nil {\n    panic(err)\n  }\n  fmt.Println(\"EFF Short wordlist passphrase:\", effShortPassphrase)\n\n  // Example 5: Original wordlist\n  originalOpts := diceware.PassphraseOptions{\n    WordCount: 8,\n    Separator: \"-\",\n    Wordlist:  wordlist.Original,\n  }\n  originalPassphrase, err := diceware.RollWords(originalOpts)\n  if err != nil {\n    panic(err)\n  }\n  fmt.Println(\"Original wordlist passphrase:\", originalPassphrase)\n\n  // Example 6: Backward compatibility with v1 API\n  legacyPassphrase, err := diceware.SimpleRollWords(6, \":\", wordlist.EFFLong, true)\n  if err != nil {\n    panic(err)\n  }\n  fmt.Println(\"Legacy API passphrase:\", legacyPassphrase)\n}\n```\n\n### Sample Output\n\n```\nDefault options passphrase: upstart embezzle haystack brainwash bombard hertz\nEFF Long wordlist passphrase: playlist-wisplike-chive-coaster-caution-hypnoses-reliable-mangy\nEnhanced entropy passphrase: c:onsult+ma9roon+sizzl3e+sm-ugly+usea?ble+supermom+delusion+cozily\nEFF Short wordlist passphrase: churn-wish-july-aroma-agile-curry-stain-boxer\nOriginal wordlist passphrase: bunny-count-cloy-trust-mw-mere-queasy-egg\nLegacy API passphrase: upstart:embe/zzle:haystack:brainwash:bombard:her\\tz\n```\n\n## Security Considerations\n\n- Uses `crypto/rand` for cryptographically secure random number generation\n- The entropy of a passphrase depends on the wordlist size and word count:\n  - Original wordlist (7,776 words): ~12.9 bits of entropy per word\n  - EFF Long wordlist (7,776 words): ~12.9 bits of entropy per word\n  - EFF Short wordlist (1,296 words): ~10.3 bits of entropy per word\n- Enhanced entropy adds random special characters, increasing security\n- Recommended minimum: 6 words with EFF Long wordlist (~77.5 bits of entropy)\n\n## License\n\n[MIT](https://github.com/everlastingbeta/diceware/blob/main/LICENSE)\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Feverlastingbeta%2Fdiceware","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Feverlastingbeta%2Fdiceware","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Feverlastingbeta%2Fdiceware/lists"}