pub trait Decoder: Send + Sync {
// Required methods
fn name(&self) -> &'static str;
fn decode_chunk(&self, chunk: &Chunk) -> Vec<Chunk>;
}Expand description
A trait for decoding chunks to find hidden secrets.
§Examples
ⓘ
use keyhog_core::Chunk;
use keyhog_scanner::decode::Decoder;
struct Passthrough;
impl Decoder for Passthrough {
fn name(&self) -> &'static str { "passthrough" }
fn decode_chunk(&self, chunk: &Chunk) -> Vec<Chunk> { vec![chunk.clone()] }
}