1 unstable release
new 0.1.0 | Oct 26, 2024 |
---|
#350 in Authentication
7KB
rustywt
A simple JWT (JSON Web Token) crate implemented in Rust, focusing on the HS256 (HMAC SHA-256) algorithm. This crate allows you to create and sign JWTs without relying on external JWT crates, providing an educational insight into the inner workings of JWTs and cryptographic signing in Rust.
Table of Contents
- Features
- Prerequisites
- Installation
- Usage
- Project Structure
- Contributing
- License
- Acknowledgments
JWT Generation: Create JSON Web Tokens with custom headers and payloads.
HS256 Signing: Sign tokens using the HMAC SHA-256 algorithm.
Payload Support: Utilize Rust generics to support various payload types.
Dependencies
~1.2–2.2MB
~47K SLoC