{"id":20303962,"url":"https://github.com/billstclair/cl-diceware","last_synced_at":"2026-02-13T17:32:52.391Z","repository":{"id":19767216,"uuid":"41913927","full_name":"billstclair/cl-diceware","owner":"billstclair","description":"Diceware passphrase generator in Common Lisp","archived":false,"fork":false,"pushed_at":"2022-03-26T07:49:52.000Z","size":244,"stargazers_count":3,"open_issues_count":1,"forks_count":2,"subscribers_count":2,"default_branch":"master","last_synced_at":"2026-01-20T10:52:52.684Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"Common Lisp","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/billstclair.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":"2015-09-04T12:12:57.000Z","updated_at":"2023-10-31T20:14:37.000Z","dependencies_parsed_at":"2022-07-23T13:47:46.068Z","dependency_job_id":null,"html_url":"https://github.com/billstclair/cl-diceware","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/billstclair/cl-diceware","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/billstclair%2Fcl-diceware","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/billstclair%2Fcl-diceware/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/billstclair%2Fcl-diceware/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/billstclair%2Fcl-diceware/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/billstclair","download_url":"https://codeload.github.com/billstclair/cl-diceware/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/billstclair%2Fcl-diceware/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":29413403,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-02-13T06:24:03.484Z","status":"ssl_error","status_checked_at":"2026-02-13T06:23:12.830Z","response_time":78,"last_error":"SSL_connect returned=1 errno=0 peeraddr=140.82.121.5:443 state=error: 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":[],"created_at":"2024-11-14T16:41:57.498Z","updated_at":"2026-02-13T17:32:52.375Z","avatar_url":"https://github.com/billstclair.png","language":"Common Lisp","funding_links":[],"categories":[],"sub_categories":[],"readme":"# cl-diceware\n\nThis is a Common Lisp implementation of the Diceware passphrase generation algorithm.\n\nYou can find a description of the algorithm at http://diceware.com\n\nMIT license in LICENSE, and at the bottom of source files.\n\nIt's a lot more effort to get cryptographically secure random numbers in Windows, so I didn't bother.\n\nPretty standard lisp package. System definition in cl-diceware.asd. \n\nTested in Clozure Common Lisp (CCL) and Steel Bank Common Lisp (SBCL).\n\n## Command-line script\n\nThe \"diceware\" file is a bash script to print passphrases in a shell.\n\n;; Run in CCL (assuming \"ccl\" will start the lisp).\u003cbr/\u003e\n`./diceware [\u003ccount\u003e]`\n\n;; Run in SBCL\u003cbr/\u003e\n`LISP=sbcl ./diceware [\u003ccount\u003e]`\n\n;; Run in other lisp\u003cbr/\u003e\n`LISP=whatever LISP_OPTIONS=\"--noprint options\" ./diceware [\u003ccount\u003e]`\n\n\u0026lt;count\u0026gt; defaults to 5. Non-integer \u003ccount\u003e, e.g. \"-h\" or \"--help\", prints help.\n\n;; Use /dev/random instead of the default of /dev/urandom\u003cbr/\u003e\n;; (Or set CL_DICEWARE_REAL_RANDOM=t in your shell init file)\u003cbr/\u003e\n`CL_DICEWARE_REAL_RANDOM=t ./diceware [\u003ccount\u003e]`\n\n## Function reference\n\nAll functions and variables below are exported from the **cl-diceware** package. Random bytes are fetched from /dev/random, except on Windows, where it uses **cl:random**.\n\n**with-/dev/random** (\u0026optional _stream_) \u0026body _body_\n\n\u003e A macro to bind an (unsigned-byte 8) stream to STREAM around the execution of BODY. Wrap calls to the RANDOM-xxx functions with this to prevent multiple opening and closing of /dev/random.\n\n**random-byte**\n\n\u003e Returns a random integer between 0 and 255 (inclusive).\n\n**random-integer** _limit_\n\n\u003e Returns a random integer \u003e= 0 and \u003c limit. Same as **cl:random**, but better randomness.\n\n**random-word**\n\n\u003e Returns a random word from the Diceware word list.\n\n**random-words** _count_\n\n\u003e Returns a list of COUNT random words from the Diceware word list.\n\n**random-words-string** _count_\n\n\u003eReturns a string containing COUNT random words, separated by spaces.\n\n**\u0026ast;real-random-p\u0026ast;**\n\nVariable controls whether to use /dev/random or /dev/urandom for random numbers. If true and not :USE-FEATURES, will use /dev/random, otherwise /dev/urandom. If EQ to :USE-FEATURES, will use /dev/random only if :CL-DICEWARE-REAL-RANDOM-P is in \u0026ast;FEATURES\u0026ast;. cl-diceware.asd pushes :CL-DICEWARE-REAL-RANDOM-P onto \u0026ast;FEATURES\u0026ast; if the CL_DICEWARE_REAL_RANDOM environment variable is non-blank.\n\nDefault: use /dev/urandom\n\nBill St. Clair \u0026lt;billstclair@gmail.com\u0026gt;\u003cbr/\u003e\n4 September 2015\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fbillstclair%2Fcl-diceware","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fbillstclair%2Fcl-diceware","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fbillstclair%2Fcl-diceware/lists"}