pub struct Base91Decoder;
Expand description

The Base91 decoder, call: let base91_decoder = Decoder::<Base91Decoder>::new() to create a new instance And then call: result = base91_decoder.crack(input) to decode a base91 string The struct generated by new() comes from interface.rs

use ares::decoders::base91_decoder::{Base91Decoder};
use ares::decoders::interface::{Crack, Decoder};
use ares::checkers::{athena::Athena, CheckerTypes, checker_type::{Check, Checker}};

let decode_base91 = Decoder::<Base91Decoder>::new();
let athena_checker = Checker::<Athena>::new();
let checker = CheckerTypes::CheckAthena(athena_checker);

let result = decode_base91.crack("TPwJh>Io2Tv!lE", &checker).unencrypted_text;
assert!(result.is_some());
assert_eq!(result.unwrap()[0], "hello world");

Auto Trait Implementations§

Blanket Implementations§

Gets the TypeId of self. Read more
Immutably borrows from an owned value. Read more
Mutably borrows from an owned value. Read more

Returns the argument unchanged.

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

The alignment of pointer.
The type for initializers.
Initializes a with the given initializer. Read more
Dereferences the given pointer. Read more
Mutably dereferences the given pointer. Read more
Drops the object pointed to by the given pointer. Read more
The type returned in the event of a conversion error.
Performs the conversion.
The type returned in the event of a conversion error.
Performs the conversion.