module Azu::Handler::CSRF::PersistentToken::TokenOperations
Extended Modules
Defined in:
azu/handler/csrf.crInstance Method Summary
-
#mask(unmasked_token : Bytes) : String
Creates a masked version of the authenticity token that varies on each request.
- #unmask(masked_token : Bytes) : Bytes
- #xor_bytes_arrays(token : Bytes, pad : Bytes) : Bytes
Instance Method Detail
def 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.