Boilerplate code for JWT token signing and decrypting.
toml
[dependencies]
boiler-jwt = "0.1.0"
```rust use boilerjwt::{totoken, fromtoken, tovalue, from_value};
let appsecret = "my-secret"; let userid = 1;
// create a jwt with a BTreeMap
// convert back to a BTreeMap
rust
use boiler_jwt::{to_hash, verify};
let pass = "foo";
let hash = to_hash(pass);
assert!(verify(pass, &hash));
assert!(!verify("bar", &hash));