10 stable releases

2.0.2+1.0.3 Jun 25, 2021
2.0.1+1.0.3 Mar 2, 2021
2.0.0+1.0.3 Jan 11, 2021
1.0.7 Feb 19, 2020
0.5.0 Mar 9, 2018

#8 in #stateless

Download history 89/week @ 2024-03-16 85/week @ 2024-03-23 137/week @ 2024-03-30 94/week @ 2024-04-06 95/week @ 2024-04-13 95/week @ 2024-04-20 119/week @ 2024-04-27 114/week @ 2024-05-04 122/week @ 2024-05-11 96/week @ 2024-05-18 79/week @ 2024-05-25 110/week @ 2024-06-01 69/week @ 2024-06-08 104/week @ 2024-06-15 142/week @ 2024-06-22 43/week @ 2024-06-29

373 downloads per month

MIT license

66KB
1.5K SLoC

Paseto Rust

Paseto is everything you love about JOSE (JWT, JWE, JWS) without any of the many design deficits that plague the JOSE standards. This is directly adapted from the reference implemenation made by paragon-ie, which can be found: HERE.

NOTE: The license of the original paseto implementation is ISC which is functionally equivelant to MIT, but located: HERE

What is Paseto?

Paseto (Platform-Agnostic SEcurity TOkens) is a specification and reference implementation for secure stateless tokens. You can find a lot of info about the motivation + benefits of using paseto inside the original paseto repo: HERE.

Usage

Simply add this crate to your Cargo.toml file:

[dependencies]
paseto = "2.0.2+1.0.3"

Examples

The examples/ directory covers the following use cases:

  1. Using the protocol directly to encode potentially non-json data.
  2. Using the public builder interface to build a JWT esque equivelant json payload with shared key encryption.
  3. Using the public builder interface to build a JWT esque equivelant json payload with public key signing.

Dependencies

~7–10MB
~280K SLoC