Questions tagged [cipher]
For challenges relating in some way to encoding messages using classical (pen and paper) ciphers. For modern ciphers, such as AES, use the [encryption] tag instead.
34 questions
14 votes
5 answers
2k views
Decode a Caesar ciphertext with high probability
Caesar ciphers A Caesar cipher with shift=N is the process of replacing any alphabetic character in a string with the letter which is N positions ahead in the alphabet (wrapping back at the beginning)....
11 votes
23 answers
2k views
Decode Caesar cipher based on a given text
I can't think of a better name. This is similar to this challenge, but a lot easier. Read three strings which contain only uppercase letters. The length of the first and second strings are the same. ...
8 votes
10 answers
2k views
Decrypt an Autokey Cipher
The autokey cipher is closely related to the Vigenère cipher (both were invented by Blaise de Vigenère). Decryption involves the encrypted message and the key. For simplicity, let us assume all ...
17 votes
18 answers
2k views
Play Caesar's Cipher with Letters only
Description The Caesar cipher is a cipher, where every letter in the alphabet will be rotated by a secret number. If the rotation is \$7\$, then a -> ...
14 votes
8 answers
942 views
Crack the Caesar cipher
The Caesar cipher is a simple and famous cipher, where the letters of the alphabet are rotated by some secret amount. For example, if our secret rotation is 3, we ...
21 votes
17 answers
896 views
Self-unshuffling strings
To shuffle a string \$s\$, Alice applies the following algorithm: She takes the ASCII code of each character, e.g. "GOLF" → \$[ 71, 79, 76, 70 ]\$ She ...
19 votes
21 answers
2k views
Alienese cycles
Alienese refers to two "languages" in the show Futurama. In actuality, they are two ciphers of English text with a pictographic alphabet. The first is a simple substitution cipher, but the ...
3 votes
5 answers
457 views
Write A Book Cipher [closed]
Introduction Book cipher A Book cipher is a very unique method of a encipher. Here's how's it done: You have a book / a document or a article (something full of text, the more pages of text the ...
11 votes
8 answers
711 views
Implement bottom (encode)
Challenge The challenge is to implement the bottom encoding (only encoding, not decoding). There is a wide variety of existing implementations in the bottom-software-foundation org. Bottom is a text ...
7 votes
2 answers
329 views
Unscramble the letters by letter frequency analysis [closed]
You know those riddles where every letter is swapped for another letter? E.g. you get a text like ...
17 votes
19 answers
3k views
Clock (transliterate) Cipher
Introduction: I have loads of different ciphers stored in a document I once compiled as a kid, I picked a few of the ones I thought were best suitable for challenges (not too trivial, and not too ...
19 votes
13 answers
2k views
Trifid Cipher (without keyword)
Introduction: I have loads of different ciphers stored in a document I once compiled as a kid, I picked a few of the ones I thought were best suitable for challenges (not too trivial, and not too hard)...
16 votes
14 answers
2k views
Computer Cipher
Introduction: I have loads of different ciphers stored in a document I once compiled as a kid, I picked a few of the ones I thought were best suitable for challenges (not too trivial, and not too hard)...
33 votes
20 answers
4k views
The Improved Caesar Pig Latin Cipher
The problem with the Caesar cipher is the resulting words are often unpronounceable. The problem with Pig Latin is that it is easy to decode. Why not combine them? Input A word consisting of the ...
15 votes
14 answers
3k views
A Capital Cipher
Your task is to decipher a non-empty string consisting of printable ASCII characters in the range [32..126]. Reading the string character per character: each time you encounter a letter in lowercase, ...