salvo-csrf
Installation
SKILL.md
Salvo CSRF Protection
[dependencies]
salvo = { version = "0.94.0", features = ["csrf"] }
Ciphers
| Function prefix | Key type | Notes |
|---|---|---|
bcrypt_* |
— | No key. Slowest (bcrypt hashing). |
hmac_* |
[u8; 32] |
Fast. |
aes_gcm_* |
[u8; 32] |
Authenticated encryption. |
ccp_* |
[u8; 32] |
ChaCha20Poly1305. |
Each cipher pairs with a store: *_cookie_csrf(...) or *_session_csrf(...). Session variants require a SessionHandler installed earlier in the chain.