Tool to decode/encode with Ragbaby cipher, an encryption system proposing a progressive and different shift for each word.
Ragbaby Cipher - dCode
Tag(s) : Poly-Alphabetic Cipher
dCode is free and its tools are a valuable help in games, maths, geocaching, puzzles and problems to solve every day!
A suggestion ? a feedback ? a bug ? an idea ? Write to dCode!
Ragbaby is a polyalphabetic substitution cipher using a progressive shift.
Encryption with Ragbaby uses the word division of a text as well as a disordered alphabet.
For each word, numbered i (ranging from 1 to N), each letter, numbered j (ranging from 0 to M) is shifted by i+j in the alphabet.
Example: Encrypt the 2 words RAG BABY with the alphabet ALPHBETCDFGIKMNOQRSUVWYZ, to obtain SPM THDH
Plain letter | R | A | G | B | A | B | Y | |
word i | 1 | 1 | 1 | 2 | 2 | 2 | 2 | |
letter j | 0 | 1 | 2 | 0 | 1 | 2 | 3 | |
i+j | 1 | 2 | 3 | 2 | 3 | 4 | 5 | |
Cipher letter | S | P | M | T | H | D | H |
It is important to define words and their divisions, such as whether a hyphenated word counts as 1 or 2 words.
The alphabet is generated from a keyword, whose repeated letters are removed before adding the rest of the letters of the alphabet in order.
Example: SECRET generates SECRTABDFGHIJKLMNOPQUVWXYZ
In the original version, the author describes an alphabet of only 24 letters, by removing the J (replaced by I) and the X (replaced by W).
Ragbaby necessarily has spaces (or other limiter) to separate the words.
In the original version, only 24 letters are used (no J or X).
The alphabet and its size are configurable.
The first word is shifted by 1, it is possible to take another value.
Each letter induces an additional shift of 1, it is possible to shift more.
Ragbaby was proposed by Sherlac, a member of the ACA (American Cryptogram Association) in 1955.
dCode retains ownership of the "Ragbaby Cipher" source code. Except explicit open source licence (indicated Creative Commons / free), the "Ragbaby Cipher" algorithm, the applet or snippet (converter, solver, encryption / decryption, encoding / decoding, ciphering / deciphering, breaker, translator), or the "Ragbaby Cipher" functions (calculate, convert, solve, decrypt / encrypt, decipher / cipher, decode / encode, translate) written in any informatic language (Python, Java, PHP, C#, Javascript, Matlab, etc.) and all data download, script, or API access for "Ragbaby Cipher" are not public, same for offline use on PC, mobile, tablet, iPhone or Android app!
Reminder : dCode is free to use.
The copy-paste of the page "Ragbaby Cipher" or any of its results, is allowed (even for commercial purposes) as long as you credit dCode!
Exporting results as a .csv or .txt file is free by clicking on the export icon
Cite as source (bibliography):
Ragbaby Cipher on dCode.fr [online website], retrieved on 2024-12-19,