All Projects → orclight → jcaptcha

orclight / jcaptcha

Licence: other
可扩展java验证码工具类。支持字母,中文,数字运算;同时可配置验证码尺寸,背景色,干扰项

Programming Languages

java
68154 projects - #9 most used programming language

Projects that are alternatives of or similar to jcaptcha

go-captcha
Go Captcha is a behavioral captcha, which implements the generation of random verification text and the verification of click position information.
Stars: ✭ 86 (+160.61%)
Mutual labels:  captcha, verification-code
cs-wordpress-bouncer
CrowdSec is an open-source cyber security tool. This plugin blocks detected attackers or display them a captcha to check they are not bots.
Stars: ✭ 25 (-24.24%)
Mutual labels:  captcha, captcha-image
Raid-Protect-Discord-Bot
A Discord Bot that allows you to protect your Discord server with captcha, anti profanity, anti nudity image, anti spam, account age required, logs...
Stars: ✭ 182 (+451.52%)
Mutual labels:  captcha, captcha-image
hcaptcha-solver-python-selenium
hCaptcha solver and bypasser for Python Selenium. Simple website to try to solve hCaptcha.
Stars: ✭ 32 (-3.03%)
Mutual labels:  captcha
hcaptcha-bundle
A Symfony 4+ bundle to bring hCaptcha into your forms
Stars: ✭ 15 (-54.55%)
Mutual labels:  captcha
2captcha-python
Python 3 package for easy integration with the API of 2captcha captcha solving service to bypass recaptcha, hcaptcha, funcaptcha, geetest and solve any other captchas.
Stars: ✭ 140 (+324.24%)
Mutual labels:  captcha
recaptcha-2-phpbbmod
reCAPTCHA v2 for phpBB Olympus 3.0
Stars: ✭ 14 (-57.58%)
Mutual labels:  captcha
captcha-breaking-library
Neural network, contour analysis, bitmap vector subtraction CAPTCHA solving library and scripting language with perceptive color space segmentation
Stars: ✭ 76 (+130.3%)
Mutual labels:  captcha
CaptchaSolver
Um simples projeto para fazer o reconhecimento do captcha usado pelo jogo bombcrypto.
Stars: ✭ 52 (+57.58%)
Mutual labels:  captcha
wagtail-django-recaptcha
A simple recaptcha field for Wagtail Form Pages
Stars: ✭ 47 (+42.42%)
Mutual labels:  captcha
breakingcaptcha
Breaking captchas!!
Stars: ✭ 38 (+15.15%)
Mutual labels:  captcha
phone-captcha
📱 Block robocalls with captcha for phone calls
Stars: ✭ 32 (-3.03%)
Mutual labels:  captcha
2captcha-php
PHP package for easy integration with the API of 2captcha captcha solving service to bypass recaptcha, hcaptcha, funcaptcha, geetest and solve any other captchas.
Stars: ✭ 25 (-24.24%)
Mutual labels:  captcha
react-hcaptcha
hCaptcha Component Library for ReactJS
Stars: ✭ 169 (+412.12%)
Mutual labels:  captcha
SimCaptcha
✅ 一个简单易用的点触验证码 (前端+后端)
Stars: ✭ 49 (+48.48%)
Mutual labels:  captcha
Slider Captcha Crack
🌈Slider_Captcha_Crack某教育网站滑动验证码破解(识别率100%)
Stars: ✭ 49 (+48.48%)
Mutual labels:  captcha
Z-Spider
一些爬虫开发的技巧和案例
Stars: ✭ 33 (+0%)
Mutual labels:  captcha
adonis-recaptcha2
Google reCAPTCHA for AdonisJS
Stars: ✭ 24 (-27.27%)
Mutual labels:  captcha
bypass-captcha-examples
Different complex captcha bypass examples: Steam, Netflix, Data Dome, Adobe, etc.
Stars: ✭ 62 (+87.88%)
Mutual labels:  captcha
NCaptcha
.NET/Mono CAPTCHA
Stars: ✭ 15 (-54.55%)
Mutual labels:  captcha

jcaptcha

java验证码工具类,可选择英文验证码,中文验证码,算术验证码等策略,可继承策略类实现扩展。

##一.功能概述

支持策略:字母验证码,中文验证码,算术验证码

1.1 图片属性(可配置):验证码图片尺寸,背景色

1.2 干扰项(可配置):干扰线条,干扰噪点

##二.效果图

2.1 字母验证码

image

2.2 中文验证码

image

3.2 算术验证码

image

##三.实例代码(demo)

import org.orclight.java.util.captha.CaptchaClient;
import org.orclight.java.util.captha.bean.CaptchaBean;
import org.orclight.java.util.captha.strategy.CalculateCaptchaStrategy;
import org.orclight.java.util.captha.strategy.ChineseCaptchaStrategy;
import org.orclight.java.util.captha.strategy.SimpleCaptchaStrategy;

import javax.imageio.ImageIO;
import java.awt.*;
import java.io.File;
import java.io.IOException;

/**
 * Nothing seek, Nothing find.
 * author: orclight
 * Date: 2017/9/26 下午5:05
 * desc: (The role of this class is to ...)
 * To change this template use preferences | editor | File and code Templates
 */
public class TestCaptchaClient {

    static CaptchaClient simpleCaptchaClient = null;
    static CaptchaClient chineseCaptchaClient = null;
    static CaptchaClient calculateCaptchaClient = null;


    static {
        simpleCaptchaClient = CaptchaClient.create().
                            captchaStrategy(new SimpleCaptchaStrategy())
                            .build();
        chineseCaptchaClient = CaptchaClient.create()
                        .captchaStrategy(new ChineseCaptchaStrategy())
                        .build();

        calculateCaptchaClient = CaptchaClient.create()
                        .width(68)
                        .height(22)
                        .lineNum(2)
                        .yawp(0.01f)
                        .captchaStrategy(new CalculateCaptchaStrategy())
                        .transform(true)
                        .color(new Color(253, 251, 255))
                        .build();
    }

    public static void main(String[] args) {
        getSimple("/Users/yourpath/SimpleCaptchaStrategy.jpg");
        getChinese("/Users/yourpath/ChineseCaptchaStrategy.jpg");
        getCalculate("/Users/yourpath/CalculateCaptchaStrategy.jpg");
    }

    public static void getSimple(String filepath) {
        CaptchaBean captchaBean = simpleCaptchaClient.generate();

        File file = new File(filepath);
        try {
            file.createNewFile();
            ImageIO.write(captchaBean.getBufferedImage(), "JPG", file);
        } catch (IOException e) {
            e.printStackTrace();
        }

        System.out.println(captchaBean.getResult());

    }

    public static void getChinese(String filepath) {
        CaptchaBean captchaBean = chineseCaptchaClient.generate();

        File file = new File(filepath);
        try {
            file.createNewFile();
            ImageIO.write(captchaBean.getBufferedImage(), "JPG", file);
        } catch (IOException e) {
            e.printStackTrace();
        }

        System.out.println(captchaBean.getResult());

    }

    public static void getCalculate(String filepath) {
        CaptchaBean captchaBean = calculateCaptchaClient.generate();

        File file = new File(filepath);
        try {
            file.createNewFile();
            ImageIO.write(captchaBean.getBufferedImage(), "JPG", file);
        } catch (IOException e) {
            e.printStackTrace();
        }

        System.out.println(captchaBean.getResult());

    }
}
Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].