math_captcha

Crates.iomath_captcha
lib.rsmath_captcha
version0.1.1
sourcesrc
created_at2023-11-29 04:02:37.150645
updated_at2023-11-29 04:48:02.979255
descriptionThis is a mathematical CAPTCHA code generator written in Rust.
homepage
repositoryhttps://github.com/Baiyuetribe/math_captcha
max_upload_size
id1052578
size40,702
佰阅 (Baiyuetribe)

documentation

README

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);
}
Commit count: 4

cargo fmt