RepositoryRust
rrrodzilla

rrrodzilla/rusty_paseto

A type-driven, ergonomic RUST implementation of the PASETO protocol for secure stateless tokens.

145sao
15fork
1issue
0lượt xem

Thành tựu nổi bật

Những danh hiệu mới nhất của dự án

1
TINIX TRENDING·Chủ đề: encryption-algorithms

#1 Repository của tháng

2
TINIX TRENDING·Chủ đề: auth

#2 Repository của tháng

3
TINIX TRENDING·Chủ đề: ed25519

#3 Repository của tháng

🔐 rusty_paseto: Thay thế JWT an toàn bằng PASETO trong Rust

Một crate type-driven, ergonomic cho PASETO — giao thức token không trạng thái an toàn, tránh hoàn toàn những thiết kế lỗi thời của JOSE/JWT.

rusty_paseto là một crate Rust triển khai PASETO (Platform-Agnostic Security Tokens) — một giao thức token bảo mật không trạng thái, được thiết kế để thay thế JWT/JWE/JWS. Không như JOSE với nhiều lỗ hổng thiết kế, PASETO cung cấp cách tiếp cận đơn giản và an toàn hơn cho xác thực và mã hóa.

✨ Điểm nổi bật

  • Type-driven: Dùng hệ thống kiểu Rust để mã hóa thông tin version và purpose (V1–V4, Local/Public) ngay tại thời điểm biên dịch.
  • Ergonomic: API trực quan với các builder/parser mặc định, dễ dàng tích hợp vào dự án.
  • No unsafe: Hoàn toàn cấm unsafe, đảm bảo an ninh tính toán.
  • Feature-gated: Hỗ trợ cấu hình qua các feature gate: batteries_included, generic, core.
  • Hỗ trợ PASETO V1–V4: Cả mã hóa (Local) và chữ ký (Public) cho mọi phiên bản.
  • PASERK hỗ trợ: Tuần tự hóa khóa nền tảng (key serialization), bao bọc khóa bằng PIE, và wrapping dựa trên mật khẩu.
  • Claims mặc định: Hạn thời gian (exp), thời gian tạo (iat), thời gian không hiệu lực (nbf) được thiết lập tự động.
  • Footer & Implicit Assertion: Hỗ trợ footer và implicit assertion cho V3/V4.

💡 Vì sao đáng chú ý

rusty_paseto khác biệt từ các thư viện JWT truyền thống bằng cách loại bỏ các lựa chọn mật mã hóa dẫn đến lỗ hổng. Thay vào đó, nó chọn các thuật toán cụ thể cho từng phiên bản PASETO, tránh lỗi cấu hình do người dùng gây ra. Đặc biệt, việc dùng type system của Rust để mã hóa version/purpose ngay tại thời điểm biên dịch giúp ngă chặn lỗi runtime.

Phù hợp với ứng dụng cần xác thực token an toàn, không trạng thái, và muốn tránh toàn bộ các vấn đề bảo mật đã biết của JWT.


#Rust #PASETO #Security #Cryptography #Auth #TiniX

Dự án tương tự

Khám phá các dự án và mô hình AI khác có sự tương đồng.

RepositoryHaskell
simplex-chat/simplex-chat

SimpleX - the first messaging network operating without user identifiers of any kind - 100% private by design! iOS, Android and desktop apps 📱!

19.8k
Nov 28, 2026
RepositoryJava
cryptomator/cryptomator

Cryptomator for Windows, macOS, and Linux: Secure client-side encryption for your cloud storage, ensuring privacy and control over your data.

16.6k
Nov 24, 2026
RepositoryGo
golang-jwt/jwt

Go implementation of JSON Web Tokens (JWT).

9.3k
Dec 1, 2026
RepositoryGo
smallstep/cli

🧰 A zero trust swiss army knife for working with X509, OAuth, JWT, OATH OTP, etc.

4.4k
Nov 25, 2026
RepositoryC
openssl/openssl

General purpose TLS and crypto library

31.5k
Nov 26, 2026
Modelsentence-similarity
sentence-transformers/all-MiniLM-L6-v2

all-MiniLM-L6-v2 This is a sentence-transformers(https://www.SBERT.net) model: It maps sentences & paragraphs to a 384 dimensional dense vector space and can be used for tasks like clustering or semantic search. Usage (Sentence-Transformers) Using t...

♥0
157.6M
Jun 1, 2026
RepositoryRust
GyulyVGC/sniffnet

Comfortably monitor your network traffic 🕵️‍♂️

43.4k
Nov 28, 2026
RepositoryRust
tinyhumansai/openhuman

The fastest, cheapest, most efficient open-source agent harness. Run more than 500 agents on a $10 VPS.

43.0k
Nov 24, 2026
RepositoryRust
spacedriveapp/spacedrive

Spacedrive is an open source cross-platform file explorer, powered by a virtual distributed filesystem written in Rust.

39.6k
Nov 25, 2026