#captcha #recaptcha

recaptcha

recaptcha response verification

13 releases

0.5.0 Jun 26, 2021
0.4.1 Apr 4, 2020
0.4.0 Jan 22, 2020
0.3.1 Jan 11, 2019
0.0.6 Mar 8, 2015

#4 in #captcha

Download history 832/week @ 2021-09-25 900/week @ 2021-10-02 796/week @ 2021-10-09 763/week @ 2021-10-16 803/week @ 2021-10-23 674/week @ 2021-10-30 502/week @ 2021-11-06 520/week @ 2021-11-13 398/week @ 2021-11-20 652/week @ 2021-11-27 721/week @ 2021-12-04 690/week @ 2021-12-11 596/week @ 2021-12-18 500/week @ 2021-12-25 543/week @ 2022-01-01 560/week @ 2022-01-08

2,311 downloads per month

MIT license

6KB
125 lines

recaptcha-rs Build Status

Recaptcha-rs is a very simple library to verify recaptcha responses.

Installation

To use recaptcha-rs in your project you can add the following to your Cargo.toml:

[dependencies]
recaptcha = "0.5.0"

Usage

Verifying recaptcha responses is very easy:

extern crate recaptcha;

fn main() {
    let remote_ip = "123.123.123.123".parse().ok();
    let res = recaptcha::verify("your_private_key", "user_response", remote_ip).await;

    if res.is_ok() {
        println!("Success");
    } else {
        println!("Failure");
    }
}

Dependencies

~3.5–7MB
~171K SLoC

`