package sihl

  1. Overview
  2. Docs

Module Csrf.CryptoSource

Sourceval block_size : int
Sourceval token_length : int

token_length is the amount of bytes used in the unencrypted CSRF tokens.

Sourcemodule Secret : sig ... end
Sourcemodule Encrypted_token : sig ... end
Sourcemodule Decrypted_token : sig ... end

This module does not provide an API to read a decrypted token (by turning it into a string, Cstruct.t or similar). This is to prevent leaking CSRF tokens.

OCaml

Innovation. Community. Security.