Skip to main content

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.

14 votes
5 answers
2k views

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)....
Nicola Sap's user avatar
  • 3,823
11 votes
23 answers
2k views

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. ...
None1's user avatar
  • 1,165
8 votes
10 answers
2k views

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 ...
SquareFinder's user avatar
17 votes
18 answers
2k views

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 -> ...
math scat's user avatar
  • 9,538
14 votes
8 answers
942 views

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 ...
AnttiP's user avatar
  • 8,048
21 votes
17 answers
896 views

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 ...
Arnauld's user avatar
  • 206k
19 votes
21 answers
2k views

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 ...
caird coinheringaahing's user avatar
3 votes
5 answers
457 views

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 ...
Jane's user avatar
  • 133
11 votes
8 answers
711 views

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 ...
Orangutan's user avatar
  • 817
7 votes
2 answers
329 views

You know those riddles where every letter is swapped for another letter? E.g. you get a text like ...
Zsolt Szilagy's user avatar
17 votes
19 answers
3k views

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 ...
Kevin Cruijssen's user avatar
19 votes
13 answers
2k views

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)...
Kevin Cruijssen's user avatar
16 votes
14 answers
2k views

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)...
Kevin Cruijssen's user avatar
33 votes
20 answers
4k views

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 ...
qazwsx's user avatar
  • 1,194
15 votes
14 answers
3k views

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, ...
Arnauld's user avatar
  • 206k

15 30 50 per page