Skip to main content

Module jwt

Module jwt 

Source
Expand description

Real JWT (HS256) implementation using RustCrypto audited crates.

v0.2.2 重构(P2-5):将手写 SHA-256 / HMAC-SHA256 / base64url 替换为 RustCrypto audited crate(sha2hmacbase64),降低密码学实现风险。

Token format: base64url(header).base64url(payload).base64url(signature) where signature = HMAC-SHA256(secret, header.payload).

Structs§

JwtClaims
JwtEncoder
JwtHeader