Sha256: 820265752189e80e0d67d5209d46a95970a3c18d52569a36633319cd1e3f774a

Contents?: true

Size: 957 Bytes

Versions: 167

Compression:

Stored size: 957 Bytes

Contents

The Atbash cipher is a simple substitution cipher that relies on
transposing all the letters in the alphabet such that the resulting
alphabet is backwards. The first letter is replaced with the last
letter, the second with the second-last, and so on.

An Atbash cipher for the Latin alphabet would be as follows:

```plain
Plain:  abcdefghijklmnopqrstuvwxyz
Cipher: zyxwvutsrqponmlkjihgfedcba
```

It is a very weak cipher because it only has one possible key, and it is
a simple monoalphabetic substitution cipher. However, this may not have
been an issue in the cipher's time.

Ciphertext is written out in groups of fixed length, the traditional group size
being 5 letters, and punctuation is excluded. This is to make it harder to guess
things based on word boundaries.

## Examples
- Encoding `test` gives `gvhg`
- Decoding `gvhg` gives `test`
- Decoding `gsvjf rxpyi ldmul cqfnk hlevi gsvoz abwlt` gives `The quick brown fox jumps over the lazy dog.`

Version data entries

167 entries across 167 versions & 1 rubygems

Version Path
trackler-2.1.0.11 common/exercises/atbash-cipher/description.md
trackler-2.1.0.10 common/exercises/atbash-cipher/description.md
trackler-2.1.0.9 common/exercises/atbash-cipher/description.md
trackler-2.1.0.8 common/exercises/atbash-cipher/description.md
trackler-2.1.0.7 common/exercises/atbash-cipher/description.md
trackler-2.1.0.6 common/exercises/atbash-cipher/description.md
trackler-2.1.0.5 common/exercises/atbash-cipher/description.md
trackler-2.1.0.4 common/exercises/atbash-cipher/description.md
trackler-2.1.0.3 common/exercises/atbash-cipher/description.md
trackler-2.1.0.2 common/exercises/atbash-cipher/description.md
trackler-2.1.0.1 common/exercises/atbash-cipher/description.md
trackler-2.1.0.0 common/exercises/atbash-cipher/description.md
trackler-2.0.8.55 common/exercises/atbash-cipher/description.md
trackler-2.0.8.54 common/exercises/atbash-cipher/description.md
trackler-2.0.8.53 common/exercises/atbash-cipher/description.md
trackler-2.0.8.52 common/exercises/atbash-cipher/description.md
trackler-2.0.8.51 common/exercises/atbash-cipher/description.md
trackler-2.0.8.50 common/exercises/atbash-cipher/description.md
trackler-2.0.8.49 common/exercises/atbash-cipher/description.md
trackler-2.0.8.48 common/exercises/atbash-cipher/description.md