The Ragbaby Cipher is a monoalphabetic substitution cipher that uses a keyword to scramble the alphabet while preserving the case of letters. It preserves spaces and faithfully encodes/decode letters according to the keyword mapping.
Ragbaby Cipher: Encoding
To encode using the Ragbaby Cipher with a keyword:
Plaintext: hello WORLD
Key: keyword
Step 1: Normalize plaintext (case is preserved)
hello WORLD → hello WORLD
Step 2: Apply keyword-based monoalphabetic substitution
Each letter is replaced according to the scrambled alphabet derived from the keyword. Case is preserved.
Example mapping:
h → r
e → i
l → j
o → l
w → Y
r → W
d → K
Step 3: Construct ciphertext
Ciphertext: rijlp YRWRKRagbaby Cipher: Decoding
To decode, reverse the substitution using the same keyword and mapping:
Ciphertext: rijlp YRWRK
Key: keyword
Step 1: Map each ciphertext letter back to plaintext using keyword mapping
r → h
i → e
j → l
l → o
p →
Y → w
R → o
W → r
K → d
Step 2: Reconstruct plaintext
hello WORLDRagbaby Cipher: Notes
- Type: Substitution cipher (monoalphabetic, keyword-based)
- Key: Scrambles the alphabet to create a unique letter mapping
- Preserves letter case and spaces
- Strengths: Simple, visually obfuscates plaintext
- Weaknesses: Vulnerable to frequency analysis on longer messages