10 releases

new 0.1.10 Dec 2, 2025
0.1.8 Apr 4, 2025
0.1.7 Nov 8, 2024
0.1.6 Oct 22, 2024
0.1.0 Aug 28, 2023

#410 in Images

Download history 8/week @ 2025-08-19 2/week @ 2025-08-26 4/week @ 2025-09-09 9/week @ 2025-09-16 17/week @ 2025-09-23 16/week @ 2025-09-30 2/week @ 2025-10-07 3/week @ 2025-10-21 41/week @ 2025-11-04 10/week @ 2025-11-11 5/week @ 2025-11-18

57 downloads per month

MPL-2.0 license

31KB
436 lines

BioSvg

Captcha based on SVG.

Original idea

SVG绘制原理与验证码

Usage

cargo add biosvg

let (answer, svg) = BiosvgBuilder::new()
    .length(4)
    .difficulty(6)
    .colors(vec![
        "#0078D6".to_string(),
        "#aa3333".to_string(),
        "#f08012".to_string(),
        "#33aa00".to_string(),
        "#aa33aa".to_string(),
    ])
    .build()
    .unwrap();
println!("answer: {}", answer);
println!("svg: {}", svg);

Example

ncuz wxgc

Dependencies

~2.5–4MB
~73K SLoC