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

#305 in Authentication

Download history 59/week @ 2023-11-20 107/week @ 2023-11-27 169/week @ 2023-12-04 211/week @ 2023-12-11 145/week @ 2023-12-18 118/week @ 2023-12-25 147/week @ 2024-01-01 138/week @ 2024-01-08 227/week @ 2024-01-15 121/week @ 2024-01-22 103/week @ 2024-01-29 53/week @ 2024-02-05 80/week @ 2024-02-12 249/week @ 2024-02-19 98/week @ 2024-02-26 108/week @ 2024-03-04

541 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
~279K SLoC