Struct armorlib::preprocessors::hash::HashPreprocessor
[−]
[src]
pub struct HashPreprocessor;
Trait Implementations
impl Preprocessor for HashPreprocessor[src]
fn process(&self, binary_object: &BinaryObject) -> HashMap<String, String>[src]
Returns a map where the key is the hash type (md5, sha1, sha2, sha3) and the value is
the hash's value, in lower case. The following hashes are provided:
* md5
* sha1
* sha256
* sha512
* sha224
* sha384
* sha3-256
* sha3-512
* sha3-224
* sha3-384
(These hash names also indicate the key under which the string values are stored.)
fn info(&self) -> (&'static str, &'static str)[src]
Returns a tuple of the name and description of the preprocessor. It is important that the first item of the tuple, the name, does not change once a preprocessor has been added to the master ArmorLib codebase, as the name is what scan modules rely on to ensure that the preprocessor's data is in scope. The name should be in snake case. Read more
fn name(&self) -> &'static str[src]
Returns a &'static str of the name of the preprocessor. This is the name that the scan modules will rely on to ensure that the preprocessor's data is available, so it is important that this information does not change. Read more
fn description(&self) -> &'static str[src]
Returns a &'static str of the description of the preprocessor.