CSRF protection using HMAC-signed state tokens (RFC 5869, RFC 2104)
OCaml 80.3%
Dune 5.7%
Other 14.0%
19 1 0

Clone this repository

https://tangled.org/gazagnaire.org/ocaml-csrf https://tangled.org/did:plc:jhift2vwcxhou52p3sewcrpx/ocaml-csrf
git@git.recoil.org:gazagnaire.org/ocaml-csrf git@git.recoil.org:did:plc:jhift2vwcxhou52p3sewcrpx/ocaml-csrf

For self-hosted knots, clone URLs may differ based on your setup.

Download tar.gz
README.md

CSRF - CSRF protection using HMAC-signed state tokens#

CSRF protection using HMAC-signed state tokens with HKDF key derivation (RFC 5869) and constant-time signature verification. Provides sign_state and verify_state functions for secure OAuth state parameters.

Installation#

opam install csrf will install this library.

Documentation#