salvo-csrf

Installation
SKILL.md

Salvo CSRF Protection

[dependencies]
salvo = { version = "1.0.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.

Basic: Cookie Store + Form Token

Installs
28
GitHub Stars
20
First Seen
Feb 10, 2026