Documentation Index
Fetch the complete documentation index at: https://mintlify.com/binary-person/rammerhead/llms.txt
Use this file to discover all available pages before exploring further.
StrShuffler encodes and decodes URL strings using a per-session character dictionary. Each session generates a unique shuffled mapping of StrShuffler.baseDictionary, so the same URL produces different ciphertext across sessions. Shuffled strings are always prefixed with _rhs so the proxy can detect whether a URL has already been encoded.
Constructor
A 64-character permutation of
StrShuffler.baseDictionary. When omitted, a random permutation is generated by calling StrShuffler.generateDictionary().Instance methods
shuffle(str)
Encodes a plain string. Returns the shuffled string prefixed with_rhs.
str already starts with _rhs, it is returned unchanged — calling shuffle on an already-shuffled string is a no-op.
Algorithm (from source):
Percent-encoded sequences such as
%20 or %2F are passed through without shuffling. This preserves URL validity for characters that must remain percent-encoded.unshuffle(str)
Decodes a shuffled string back to the original. Returns the original string without the_rhs prefix.
str does not start with _rhs, it is returned unchanged.
Algorithm (from source):
Static methods
StrShuffler.generateDictionary()
Generates a random 64-character permutation ofbaseDictionary suitable for use as a shuffle dictionary.
StrShuffler without passing a dictionary. Each session stores its own generated dictionary so that URLs can be decoded later.
Static properties
StrShuffler.baseDictionary
The fixed 64-character alphabet that all dictionaries are permutations of./, _, and any non-ASCII characters) are passed through unchanged by both shuffle and unshuffle.
/ and _ are intentionally excluded from baseDictionary. / must remain literal for URL path parsing; _ is reserved as part of the _rhs shuffled indicator prefix.StrShuffler.shuffledIndicator
The prefix prepended to every shuffled string:'_rhs'.
The proxy checks for this prefix to determine whether a URL path segment has already been encoded.