pub struct Base65536Decoder;Expand description
The base65536 decoder, call:
let base65536_decoder = Decoder::<Base65536Decoder>::new() to create a new instance
And then call:
result = base65536_decoder.crack(input) to decode a base65536 string
The struct generated by new() comes from interface.rs
use ares::decoders::base65536_decoder::{Base65536Decoder};
use ares::decoders::interface::{Crack, Decoder};
use ares::checkers::{athena::Athena, CheckerTypes, checker_type::{Check, Checker}};
let decode_base65536 = Decoder::<Base65536Decoder>::new();
let athena_checker = Checker::<Athena>::new();
let checker = CheckerTypes::CheckAthena(athena_checker);
let result = decode_base65536.crack("๐
้นจ๐กฎ๐ ๅฆ๊ข้กกๅซ๐ฑ๐ก๐ ดๅฌ๐ช้ฑคๅฅ๐ฅญ๐ ๐ฏแฎ", &checker).unencrypted_text;
assert!(result.is_some());
assert_eq!(result.unwrap()[0], "Sphinx of black quartz, judge my vow.");Auto Trait Implementationsยง
impl Freeze for Base65536Decoder
impl RefUnwindSafe for Base65536Decoder
impl Send for Base65536Decoder
impl Sync for Base65536Decoder
impl Unpin for Base65536Decoder
impl UnsafeUnpin for Base65536Decoder
impl UnwindSafe for Base65536Decoder
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