salvo-csrf

Installation
SKILL.md

Salvo CSRF Protection

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

Related skills
Installs
17
GitHub Stars
18
First Seen
Feb 10, 2026