#cryptography #crypto #token #paseto #authentication

pasetors

PASETO: Platform-Agnostic Security Tokens (in Rust)

18 releases

new 0.6.2 Sep 23, 2022
0.6.0 Jun 20, 2022
0.5.0-alpha.1 Mar 28, 2022
0.4.2 Nov 27, 2021
0.1.0 Oct 12, 2020

#278 in Cryptography

Download history 74/week @ 2022-06-07 172/week @ 2022-06-14 26/week @ 2022-06-21 67/week @ 2022-06-28 101/week @ 2022-07-05 40/week @ 2022-07-12 65/week @ 2022-07-19 64/week @ 2022-07-26 41/week @ 2022-08-02 16/week @ 2022-08-09 11/week @ 2022-08-16 51/week @ 2022-08-23 37/week @ 2022-08-30 23/week @ 2022-09-06 50/week @ 2022-09-13 148/week @ 2022-09-20

261 downloads per month

MIT license

220KB
4.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)
  • #![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.59.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.2MB
~46K SLoC