Frank JWT
Implementation of JSON Web Tokens in Rust. It supports HS and RS256, 384 and 512 signature algorithms.
Usage
Put this in your Cargo.toml
:
[]
= "2.1.1"
And this in your crate root:
extern crate frank_jwt;
use ;
Example
//HS256
let mut payload = new;
payload.insert;
payload.insert;
payload.insert;
let secret = "secret123";
let header = new;
let jwt = encode;
//RS256
let mut payload = new;
payload.insert;
payload.insert;
payload.insert;
let secret = "secret123";
let header = new;
let jwt = encode;
License
Apache 2.0
Tests
cargo test
I'm available for hire
I'm a freelance developer and looking forward to new challenges.