module Azu::Handler::CSRF::PersistentToken::TokenOperations

Extended Modules

Defined in:

azu/handler/csrf.cr

Instance Method Summary

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.


[View source]
def unmask(masked_token : Bytes) : Bytes #

[View source]
def xor_bytes_arrays(token : Bytes, pad : Bytes) : Bytes #

[View source]