com.github.sdtool:stateless-captcha

Stateless captcha library for java

Лицензия

Лицензия

Группа

Группа

com.github.sdtool
Идентификатор

Идентификатор

stateless-captcha
Последняя версия

Последняя версия

1.2.0
Дата

Дата

Тип

Тип

jar
Описание

Описание

com.github.sdtool:stateless-captcha
Stateless captcha library for java
Ссылка на сайт

Ссылка на сайт

https://github.com/sdtool/stateless-captcha
Система контроля версий

Система контроля версий

https://github.com/sdtool/stateless-captcha

Скачать stateless-captcha

Как подключить последнюю версию

<!-- https://jarcasting.com/artifacts/com.github.sdtool/stateless-captcha/ -->
<dependency>
    <groupId>com.github.sdtool</groupId>
    <artifactId>stateless-captcha</artifactId>
    <version>1.2.0</version>
</dependency>
// https://jarcasting.com/artifacts/com.github.sdtool/stateless-captcha/
implementation 'com.github.sdtool:stateless-captcha:1.2.0'
// https://jarcasting.com/artifacts/com.github.sdtool/stateless-captcha/
implementation ("com.github.sdtool:stateless-captcha:1.2.0")
'com.github.sdtool:stateless-captcha:jar:1.2.0'
<dependency org="com.github.sdtool" name="stateless-captcha" rev="1.2.0">
  <artifact name="stateless-captcha" type="jar" />
</dependency>
@Grapes(
@Grab(group='com.github.sdtool', module='stateless-captcha', version='1.2.0')
)
libraryDependencies += "com.github.sdtool" % "stateless-captcha" % "1.2.0"
[com.github.sdtool/stateless-captcha "1.2.0"]

Зависимости

compile (2)

Идентификатор библиотеки Тип Версия
com.jhlabs : filters jar 2.0.235-1
com.auth0 : java-jwt jar 3.12.0

test (1)

Идентификатор библиотеки Тип Версия
org.junit.jupiter : junit-jupiter-engine jar 5.7.0

Модули Проекта

Данный проект не имеет модулей.

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);

Версии библиотеки

Версия
1.2.0
1.1.1
1.1.0
1.0.0