pub struct ReverseDecoder;Expand description
Match secrets that have been reversed character-by-character to dodge a
naïve byte-substring scan. Cheap evasion the adversarial corpus
(release-2026-04-26) hits multiple times - RNK1ESEMURKWESFEDBA-46AIKA
is exactly the AWS access-key-id AKIA-64ABDEFSEWKRUMSEK1NR reversed.
The reverse decoder runs after the other decoders fail to match. It only emits a decoded chunk when the candidate is at least 16 chars long; below that, reversed strings collide with normal text and produce too many useless chunks for the scanner to dedup.
Trait Implementations§
Auto Trait Implementations§
impl Freeze for ReverseDecoder
impl RefUnwindSafe for ReverseDecoder
impl Send for ReverseDecoder
impl Sync for ReverseDecoder
impl Unpin for ReverseDecoder
impl UnsafeUnpin for ReverseDecoder
impl UnwindSafe for ReverseDecoder
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
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
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