azathoth_transformers
A no_std-compatible data transformation library for the Azathoth C2 systems.
Features
- Chainable transformer pipelines: Can be used to chain multiple transformers together to create a pipeline of data transformation
- Reverse-able: Each type that implements the
Transformertrait must also implement areversefunction for it no_stdby default: doesn't link thestdcrate, thus lowering the fingerprint
Installation
Manually adding to Cargo.toml:
[]
= "0.1.0"
With std and serde support:
[]
= { = "0.1.0", = ["std"] }
Using cargo:
cargo add azathoth_transformers
With std and serde support:
cargo add azathoth_transformers -F std
Quickstart
use ;
use ;
Default Transformers
The crate comes with a few basic transformers that I thought would be nice to have
| Transformer | Description |
|---|---|
AppendTransformer |
Appends a suffix to the data |
PrependTransformer |
Prepends a prefix to the data |
XorTransformer |
Basic XOR encoding with a key |
Implementing Custom Transformers
Implementing custom transformers is pretty straight-forward:
use ;
;
License
MIT