{"id":36419371,"url":"https://github.com/logicsquad/nanocaptcha","last_synced_at":"2026-01-11T17:03:34.606Z","repository":{"id":48409229,"uuid":"230821751","full_name":"logicsquad/nanocaptcha","owner":"logicsquad","description":"A Java library for generating image and audio CAPTCHAs.","archived":false,"fork":false,"pushed_at":"2025-04-26T05:27:26.000Z","size":3589,"stargazers_count":46,"open_issues_count":0,"forks_count":8,"subscribers_count":5,"default_branch":"develop","last_synced_at":"2025-07-13T04:41:20.176Z","etag":null,"topics":["captcha","java"],"latest_commit_sha":null,"homepage":"","language":"Java","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"other","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/logicsquad.png","metadata":{"files":{"readme":"README.md","changelog":"CHANGELOG.md","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,"zenodo":null}},"created_at":"2019-12-30T00:46:22.000Z","updated_at":"2025-05-14T09:03:41.000Z","dependencies_parsed_at":"2025-04-26T06:21:02.394Z","dependency_job_id":"593809af-9c0a-4ac9-b924-5ec2651d03dd","html_url":"https://github.com/logicsquad/nanocaptcha","commit_stats":null,"previous_names":[],"tags_count":8,"template":false,"template_full_name":null,"purl":"pkg:github/logicsquad/nanocaptcha","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/logicsquad%2Fnanocaptcha","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/logicsquad%2Fnanocaptcha/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/logicsquad%2Fnanocaptcha/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/logicsquad%2Fnanocaptcha/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/logicsquad","download_url":"https://codeload.github.com/logicsquad/nanocaptcha/tar.gz/refs/heads/develop","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/logicsquad%2Fnanocaptcha/sbom","scorecard":{"id":597309,"data":{"date":"2025-08-11","repo":{"name":"github.com/logicsquad/nanocaptcha","commit":"818b65a1804360de0cf8adaa72cbd9635f54022a"},"scorecard":{"version":"v5.2.1-40-gf6ed084d","commit":"f6ed084d17c9236477efd66e5b258b9d4cc7b389"},"score":3.4,"checks":[{"name":"Code-Review","score":0,"reason":"Found 0/27 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":"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":"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":"Token-Permissions","score":0,"reason":"detected GitHub workflow tokens with excessive permissions","details":["Warn: no topLevel permission defined: .github/workflows/build.yml:1","Warn: no topLevel permission defined: .github/workflows/deploy.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":"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":"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/build.yml:8: update your workflow using https://app.stepsecurity.io/secureworkflow/logicsquad/nanocaptcha/build.yml/develop?enable=pin","Warn: GitHub-owned GitHubAction not pinned by hash: .github/workflows/build.yml:10: update your workflow using https://app.stepsecurity.io/secureworkflow/logicsquad/nanocaptcha/build.yml/develop?enable=pin","Warn: GitHub-owned GitHubAction not pinned by hash: .github/workflows/deploy.yml:12: update your workflow using https://app.stepsecurity.io/secureworkflow/logicsquad/nanocaptcha/deploy.yml/develop?enable=pin","Warn: GitHub-owned GitHubAction not pinned by hash: .github/workflows/deploy.yml:14: update your workflow using https://app.stepsecurity.io/secureworkflow/logicsquad/nanocaptcha/deploy.yml/develop?enable=pin","Warn: third-party GitHubAction not pinned by hash: .github/workflows/deploy.yml:28: update your workflow using https://app.stepsecurity.io/secureworkflow/logicsquad/nanocaptcha/deploy.yml/develop?enable=pin","Info:   0 out of   4 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":"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":"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":"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":"License","score":9,"reason":"license file detected","details":["Info: project has a license file: LICENSE.txt:0","Warn: project license file does not contain an FSF or OSI license."],"documentation":{"short":"Determines if the project has defined a license.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#license"}},{"name":"Branch-Protection","score":0,"reason":"branch protection not enabled on development/release branches","details":["Warn: branch protection not enabled for branch 'develop'"],"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 3 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-20T23:27:39.799Z","repository_id":48409229,"created_at":"2025-08-20T23:27:39.799Z","updated_at":"2025-08-20T23:27:39.799Z"},"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":28314262,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-01-11T14:58:17.114Z","status":"ssl_error","status_checked_at":"2026-01-11T14:55:53.580Z","response_time":60,"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":["captcha","java"],"created_at":"2026-01-11T17:03:34.533Z","updated_at":"2026-01-11T17:03:34.591Z","avatar_url":"https://github.com/logicsquad.png","language":"Java","funding_links":[],"categories":[],"sub_categories":[],"readme":"![](https://github.com/logicsquad/nanocaptcha/workflows/build/badge.svg)\n[![License](https://img.shields.io/badge/License-BSD-blue.svg)](https://opensource.org/licenses/BSD-3-Clause)\n\nNanoCaptcha\n===========\n\nWhat is this?\n-------------\nNanoCaptcha is a Java library for generating image and audio\nCAPTCHAs. NanoCaptcha is intended to be:\n\n* Self-contained: no network API hits to any external services.\n\n* Minimally-dependent: using NanoCaptcha should not involve pulling in\n  a plethora of JARs, and ideally none at all.\n\nGetting started\n---------------\nYou can build a minimal image CAPTCHA very easily:\n\n    ImageCaptcha imageCaptcha = ImageCaptcha.create();\n\nThis creates a 200 x 50 pixel image and adds five random characters\nfrom the Latin alphabet.  The `getImage()` method returns the image as\na `BufferedImage` object. `isCorrect(String)` will verify the supplied\nstring against the text content of the image. If you need the text\ncontent itself, call `getContent()`.  Image CAPTCHAs can be further\ncustomised by:\n\n* Using different `ContentProducer`s (e.g., `ChineseContentProducer`).\n* Supplying your own `Color`s and `Font`s.\n* Adding noise using a `NoiseProducer`.\n* Adding various `ImageFilter`s.\n* Adding a background or a border.\n\nTo create a custom CAPTCHA, you can use an `ImageCaptcha.Builder`,\ne.g.:\n\n    ImageCaptcha imageCaptcha = new ImageCaptcha.Builder(400, 100)\n        .addContent(new LatinContentProducer(7),\n            new DefaultWordRenderer.Builder()\n                .randomColor(Color.BLACK, Color.BLUE, Color.CYAN, Color.RED)\n                .build())\n        .addBackground(new GradiatedBackgroundProducer())\n        .addNoise(new CurvedLineNoiseProducer())\n        .build();\n\nBuilding a minimal audio CAPTCHA is just as easy:\n\n    AudioCaptcha audioCaptcha = AudioCaptcha.create();\n\nThis creates a CAPTCHA with an audio clip containing five numbers read\nout in English (unless the default `Locale` has been changed). To\ncustomise your CAPTCHA, you can use `AudioCaptcha.Builder`.\n\nThere is support for different languages. (Currently English, German\nand French are supported.) You can set the system property\n`net.logicsquad.nanocaptcha.audio.producer.RandomNumberVoiceProducer.defaultLanguage`\nto a 2-digit code for a supported language, e.g., `de`, and the\n`Builder` above will return German digit vocalizations. Alternatively,\nyou can supply a `RandomNumberVoiceProducer` explicitly:\n\n    AudioCaptcha audioCaptcha = new AudioCaptcha.Builder()\n        .addContent()\n        .addVoice(new RandomNumberVoiceProducer(Locale.GERMAN))\n        .build();\n\nYou can even mix languages by calling `addVoice(Locale)` more than\nonce.\n\nAs with image CAPTCHAs, these can be further customised by:\n\n* Adding background noise with a `NoiseProducer`.\n\nPlaying the audio is probably application-dependent, but the following\nsnippet will play the clip locally:\n\n    Clip clip = AudioSystem.getClip();\n    clip.open(audioCaptcha.getAudio().getAudioInputStream());\n    clip.start();\n    Thread.sleep(10000);\n\n(The call to `Thread.sleep()` is simply to keep the JVM alive long\nenough to play the clip.)\n\nUsing NanoCaptcha\n-----------------\nYou can use NanoCaptcha in your projects by including it as a Maven dependency:\n\n    \u003cdependency\u003e\n      \u003cgroupId\u003enet.logicsquad\u003c/groupId\u003e\n      \u003cartifactId\u003enanocaptcha\u003c/artifactId\u003e\n      \u003cversion\u003e2.1\u003c/version\u003e\n    \u003c/dependency\u003e\n\nContributing\n------------\nBy all means, open issue tickets and pull requests if you have something\nto contribute.\n\nReferences\n----------\nNanoCaptcha is based on\n[SimpleCaptcha](https://sourceforge.net/p/simplecaptcha/),\nand incorporates code from\n[JH Labs Java Image Filters](http://huxtable.com/ip/filters/).\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Flogicsquad%2Fnanocaptcha","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Flogicsquad%2Fnanocaptcha","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Flogicsquad%2Fnanocaptcha/lists"}