Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

com.github.sdtool:stateless-captcha

Package Overview
Dependencies
Maintainers
1
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

com.github.sdtool:stateless-captcha

Stateless captcha library for java

  • 1.2.0
  • Source
  • Maven
  • Socket score

Version published
Maintainers
1
Source

Stateless Captcha for Java

Maven Central

Simple standalone stateless captcha library for Java 8 (and above). Stateless verification implementation for custom usage (such as spring boot stateless microservice mode).

Based on http://simplecaptcha.sourceforge.net/ version 1.2.1

Usage

Build captcha

Captcha captcha=new Captcha.Builder(200, 50)
        .addText()
        .addNoise()
        .addBackground()
        .build();

Build Token and Verify

TokenProperties props = new TokenProperties("sd", 300)

// Create token (creator side, can be in any microservice/application)
Creator creator = new Creator(props);
// build token with captcha from earlier stage
CaptchaToken token = creator.create(captcha);

// verify token (verifier side, can be in any other microservice/application)
CaptchaVerificationToken verification=<user side data>
Verifier verifier = Verifier(props);
// verify token. If invalid VerificationException is thrown
verifier.verify(verification);

FAQs

Package last updated on 26 Jan 2021

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc