# patchca **Repository Path**: mirrors/patchca ## Basic Information - **Project Name**: patchca - **Description**: patchca 是一个简单但功能强大的验证码的Java类库。 - **Primary Language**: Java - **License**: LGPL-3.0 - **Default Branch**: master - **Homepage**: None - **GVP Project**: No ## Statistics - **Stars**: 13 - **Forks**: 0 - **Created**: 2017-04-01 - **Last Updated**: 2024-05-30 ## Categories & Tags **Categories**: captcha **Tags**: None ## README # Patchca: verification code library for Java ### Overview Simple yet powerful verification code library written in Java with zero dependency. You can generate verification code picture like this: ```java ConfigurableCaptchaService cs = new ConfigurableCaptchaService(); cs.setColorFactory(new SingleColorFactory(new Color(25, 60, 170))); cs.setFilterFactory(new CurvesRippleFilterFactory(cs.getColorFactory())); FileOutputStream fos = new FileOutputStream("patcha_demo.png"); EncoderHelper.getChallangeAndWriteImage(cs, "png", fos); fos.close(); ``` it generate picture like this: ![sample](https://raw.githubusercontent.com/pusuo/patchca/master/doc/images/patcha_demo.png)