[][src]Crate pkce

This is a minimal library with functions to generate random code verifiers and challenges to be used for OAuth Proof Key for Code Exchange.

extern crate pkce;
fn main() {
    let code_verify = pkce::code_verifier(128);
    let code_challenge = pkce::code_challenge(&code_verify);
    println!("Code challenge generated: {}", code_challenge);



Generate a code challenge from a given code verifier with SHA256 and base64.


Generate a random code verifier.