4 releases

0.1.2 Feb 13, 2025
0.1.1 Feb 9, 2025
0.1.0 Jan 27, 2025
0.0.0 Jan 26, 2025

#564 in Cryptography

Download history 129/week @ 2025-01-21 76/week @ 2025-01-28 116/week @ 2025-02-04 146/week @ 2025-02-11

467 downloads per month

MIT license

51KB
775 lines

pkce-std

License Version Downloads Test

Handling Proof Key for Code Exchange.

Installation

cargo

You can add pkce-std as a dependency with the following command:

$ cargo add pkce-std

Or by directly specifying it in the configuration like so:

[dependencies]
pkce-std = "0.1.2"

Alternatively, you can add it directly from the source:

[dependencies.pkce-std]
git = "https://github.com/nekitdev/pkce-std.git"

Example

use pkce_std::Code;

fn main() {
    let code = Code::generate_default();

    let (verifier, challenge) = code.into_pair();

    assert!(verifier.verify(&challenge));
}

Documentation

You can find the documentation here.

Support

If you need support with the library, you can send an email.

Changelog

You can find the changelog here.

Security Policy

You can find the Security Policy of pkce-std here.

Contributing

If you are interested in contributing to pkce-std, make sure to take a look at the Contributing Guide, as well as the Code of Conduct.

License

pkce-std is licensed under the MIT License terms. See License for details.

Dependencies

~5MB
~83K SLoC