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

#416 in Authentication

Download history 98/week @ 2024-07-20 102/week @ 2024-07-27 79/week @ 2024-08-03 90/week @ 2024-08-10 78/week @ 2024-08-17 79/week @ 2024-08-24 103/week @ 2024-08-31 71/week @ 2024-09-07 70/week @ 2024-09-14 95/week @ 2024-09-21 81/week @ 2024-09-28 42/week @ 2024-10-05 58/week @ 2024-10-12 69/week @ 2024-10-19 57/week @ 2024-10-26 56/week @ 2024-11-02

246 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
~289K SLoC