{"id":41108946,"url":"https://github.com/nilium/regen","last_synced_at":"2026-01-22T15:32:56.801Z","repository":{"id":66712994,"uuid":"53180301","full_name":"nilium/regen","owner":"nilium","description":"Tool to generate random strings from Go/RE2 regular expressions (Migrated to https://git.sr.ht/~nilium/regen)","archived":false,"fork":false,"pushed_at":"2024-10-27T20:32:40.000Z","size":17,"stargazers_count":79,"open_issues_count":1,"forks_count":3,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-10-10T13:37:28.823Z","etag":null,"topics":["evil","regexp","regular-expression","string-generator"],"latest_commit_sha":null,"homepage":"https://go.spiff.io/regen","language":"Go","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"bsd-2-clause","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/nilium.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE.txt","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":"2016-03-05T03:01:15.000Z","updated_at":"2024-10-27T20:32:44.000Z","dependencies_parsed_at":"2023-09-06T13:31:37.555Z","dependency_job_id":null,"html_url":"https://github.com/nilium/regen","commit_stats":null,"previous_names":[],"tags_count":2,"template":false,"template_full_name":null,"purl":"pkg:github/nilium/regen","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/nilium%2Fregen","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/nilium%2Fregen/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/nilium%2Fregen/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/nilium%2Fregen/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/nilium","download_url":"https://codeload.github.com/nilium/regen/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/nilium%2Fregen/sbom","scorecard":{"id":687966,"data":{"date":"2025-08-11","repo":{"name":"github.com/nilium/regen","commit":"7e0565dd535478aea8abb398ae6b2a87aac7364f"},"scorecard":{"version":"v5.2.1-40-gf6ed084d","commit":"f6ed084d17c9236477efd66e5b258b9d4cc7b389"},"score":3,"checks":[{"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":"Maintained","score":0,"reason":"0 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":"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/24 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":"Dangerous-Workflow","score":-1,"reason":"no workflows found","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":"Token-Permissions","score":-1,"reason":"No tokens found","details":null,"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":"SAST","score":0,"reason":"no SAST tool detected","details":["Warn: no pull requests merged into dev branch"],"documentation":{"short":"Determines if the project uses static code analysis.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#sast"}},{"name":"Pinned-Dependencies","score":-1,"reason":"no dependencies found","details":null,"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":"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.txt:0","Info: FSF or OSI recognized license: BSD 2-Clause \"Simplified\" License: LICENSE.txt: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"}}]},"last_synced_at":"2025-08-22T01:27:29.255Z","repository_id":66712994,"created_at":"2025-08-22T01:27:29.256Z","updated_at":"2025-08-22T01:27:29.256Z"},"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":28665485,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-01-22T14:01:31.714Z","status":"ssl_error","status_checked_at":"2026-01-22T13:59:23.143Z","response_time":144,"last_error":"SSL_connect returned=1 errno=0 peeraddr=140.82.121.6: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":["evil","regexp","regular-expression","string-generator"],"created_at":"2026-01-22T15:32:55.963Z","updated_at":"2026-01-22T15:32:56.778Z","avatar_url":"https://github.com/nilium.png","language":"Go","readme":"regen\n=====\n\n    $ go get go.spiff.io/regen\n\nregen is a small tool to generate more or less random strings from Go RE2 regular expressions. You\ncan read up on RE2 at \u003chttps://github.com/google/re2/wiki/Syntax\u003e.\n\nAs a few examples:\n\n    $ regen -n 2 '0x[\\da-f]{16}'\n    0x8f5858102a5ce124\n    0x3e4c9fee6c9f419d\n\n    $ regen -n 3 '[a-z]{6,12}(\\+[a-z]{6,12})?@[a-z]{6,16}(\\.[a-z]{2,3}){1,2}'\n    iprbph+gqastu@regegzqa.msp\n    abxfcomj@uyzxrgj.kld.pp\n    vzqdrmiz@ewdhsdzshvvxjk.pi\n\nEssentially, all regen does is parse the regular expressions it's given and iterate over the tree\nproduced by [regexp/syntax](https://golang.org/pkg/regexp/syntax/) and attempt to generate strings\nbased on the ops described by its results. This could probably be optimized further by compiling the\nresulting Regexp into a Prog, but I didn't feel like this was worthwhile when it's a very small\ntool.\n\nCurrently, handling word boundaries is not supported and will cause regen to panic in response. The\nway line endings and EOT is handled are also likely incorrect and they'll need some more thinking\nput into them.\n\nSome additional information can be found at \u003chttps://godoc.org/go.spiff.io/regen\u003e.\n\n\nContributing\n------------\nDevelopment of regen is frozen except for bug fixes since it does what I wanted it to do (for the\nmost part). My suggestion is to fork it if you have any plans to do more with it, a few others have\ndone this (e.g., to turn it into a testing package) to continue it in other directions and that's\nperfectly fine.\n\n\nLicense\n-------\nregen is licensed under a 2-clause BSD license. This can be found in LICENSE.txt.\n","funding_links":[],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fnilium%2Fregen","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fnilium%2Fregen","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fnilium%2Fregen/lists"}