module

Amber::Pipe::CSRF::PersistentToken::TokenOperations

Instance methods

mask(unmasked_token : Bytes) : String

Creates a masked version of the authenticity token that varies on each request. The masking is used to mitigate SSL attacks like BREACH.

Source
unmask(masked_token : Bytes) : Bytes
Source
xor_bytes_arrays(token : Bytes, pad : Bytes) : Bytes
Source