#captcha #captcha-generator

math_captcha

This is a mathematical CAPTCHA code generator written in Rust

2 releases

0.1.1 Nov 29, 2023
0.1.0 Nov 29, 2023

#1204 in Math

MIT license

18KB
135 lines

Math_Captcha

Example

Features

  • 用 rust 编写的数学验证码生成库

Install

cargo add math_captcha

Usage

use math_captcha::Captcha;

fn main() {
    let a = Captcha::new(150, 50); // width: 150, height: 50
    println!("value:{},base64_img:{}", a.value, a.base64_img);
}

Dependencies

~14MB
~252K SLoC