#crypto #token #paseto #authentication

no-std pasetors

PASETO: Platform-Agnostic Security Tokens (in Rust)

23 releases

0.6.7 Jun 10, 2023
0.6.6 Mar 4, 2023
0.6.5 Dec 14, 2022
0.6.4 Nov 17, 2022
0.1.0 Oct 12, 2020

#163 in Cryptography

Download history 20423/week @ 2023-06-06 24008/week @ 2023-06-13 24412/week @ 2023-06-20 24459/week @ 2023-06-27 23840/week @ 2023-07-04 28530/week @ 2023-07-11 32815/week @ 2023-07-18 27021/week @ 2023-07-25 25144/week @ 2023-08-01 20064/week @ 2023-08-08 20286/week @ 2023-08-15 26747/week @ 2023-08-22 23959/week @ 2023-08-29 19134/week @ 2023-09-05 19857/week @ 2023-09-12 17292/week @ 2023-09-19

84,878 downloads per month
Used in 37 crates (2 directly)

MIT license

235KB
5K SLoC

Tests Documentation Crates.io Safety Dance MSRV codecov

PASETOrs

"Paseto is everything you love about JOSE (JWT, JWE, JWS) without any of the many design deficits that plague the JOSE standards."

PASETO (Platform-Agnostic SEcurity TOkens) are secure stateless tokens. Read more here and at PASETO.io.

This library includes:

  • Pure-Rust implementation of the Version 4, 3† and 2 protocol
  • PASERK support (limited amount of PASERK-types) with optional serde support as well
  • #![no_std] (with default-features disabled) and #![forbid(unsafe_code)]
  • WASM-friendly (wasm32-unknown-unknown using #![no_std])
  • Fuzzing targets
  • Test vectors
  • Usage examples

Only the public variant (v3.public) of version 3 is currently supported.

Usage

See usage examples here.

Security

This library has not undergone any third-party security audit. Usage is at own risk.

Minimum Supported Rust Version

Rust 1.65.0 or later is supported however, the majority of testing happens with latest stable Rust.

MSRV may be changed at any point and will not be considered a SemVer breaking change.

Changelog

Please refer to the CHANGELOG.md list.

License

pasetors is licensed under the MIT license. See the LICENSE file for more information.

Dependencies

~0.1–2.7MB
~52K SLoC