Crate masker

source ·
Expand description

masker

This crate provides an object Masker which can replace a set of (potentially overlapping) patterns in input data with a fixed mask. It’s usually faster than simply doing searches with replacement one by one, and it handles two awkward cases:

  • It allows you to provide the data in chunks, for example to mask data as you upload it.
  • It handles the case where masked regions blend together, for example if two patterns are present and overlap, then replacing either of them first leaves characters from the other visible.

There are the following features:

  • "streams" - Mask [Stream] implementations by wrapping them.

Structs

Mask a sequence of data blocks
Replace byte sequences with a chosen mask value
A pattern to mask