ic-captcha
ic-captcha is a library that generating CAPTCHAs with given random bytes for the Internet Computer.
It is inspired by captcha-rs.
Usage
See examples and the API documentation for more.
Using mode method
![]() |
![]() |
![]() |
|---|---|---|
| CaptchaBuilder::new().mode(0) | CaptchaBuilder::new().mode(1) | CaptchaBuilder::new().mode(2) |
Using complexity method
![]() |
![]() |
![]() |
|---|---|---|
| CaptchaBuilder::new().complexity(1) | CaptchaBuilder::new().complexity(5) | CaptchaBuilder::new().complexity(10) |
Using compression
![]() |
![]() |
![]() |
|---|---|---|
| captcha.to_base64(10) | captcha.to_base64(40) | captcha.to_base64(80) |
Example
Add the following dependency to the Cargo.toml file:
[]
= "0.2"
And then get started in your main.rs:
use CaptchaBuilder;
License
Copyright © 2024-present LDC Labs.
ldclabs/ic-captcha is licensed under either of Apache License, Version
2.0.








