rust-jwt
Implementation of JSON JWT in Rust JSON Web Tokens. It supports HS256, 384 and 512 signature algorithms.
Usage
Put this in your Cargo.toml
:
[]
= "https://github.com/GildedHonour/rust-jwt"
And this in your crate root:
extern crate jwt;
use Header;
use Payload;
use encode;
use decode;
use Algorithm;
Example
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