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§
impl Freeze for Base91Decoder
impl RefUnwindSafe for Base91Decoder
impl Send for Base91Decoder
impl Sync for Base91Decoder
impl Unpin for Base91Decoder
impl UnsafeUnpin for Base91Decoder
impl UnwindSafe for Base91Decoder
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more