Skip to content
PixelCursor(opens in a new tab)
Cryptography

Encryption Playground

Interactive environment for encryption algorithms

Cipher
Mode
Shift
Text
Substitution

Caesar cipher

Shifts every letter by the same number of places.

1 of 10
13 characters

Ciphertext

Khoor, Zruog!

Step by step

Step 2 of 13
e+3h

e moves 3 places forward in the alphabet and becomes h.

In
  1. A
  2. B
  3. C
  4. D
  5. E
  6. F
  7. G
  8. H
  9. I
  10. J
  11. K
  12. L
  13. M
  14. N
  15. O
  16. P
  17. Q
  18. R
  19. S
  20. T
  21. U
  22. V
  23. W
  24. X
  25. Y
  26. Z
Out
  1. A
  2. B
  3. C
  4. D
  5. E
  6. F
  7. G
  8. H
  9. I
  10. J
  11. K
  12. L
  13. M
  14. N
  15. O
  16. P
  17. Q
  18. R
  19. S
  20. T
  21. U
  22. V
  23. W
  24. X
  25. Y
  26. Z
  27. A
  28. B
  29. C
  30. D
  31. E
  32. F
  33. G
  34. H
  35. I
  36. J
  37. K
  38. L
  39. M
  40. N
  41. O
  42. P
  43. Q
  44. R
  45. S
  46. T
  47. U
  48. V
  49. W
  50. X
  51. Y
  52. Z
  53. A
  54. B
  55. C
  56. D
  57. E
  58. F
  59. G
  60. H
  61. I
  62. J
  63. K
  64. L
  65. M
  66. N
  67. O
  68. P
  69. Q
  70. R
  71. S
  72. T
  73. U
  74. V
  75. W
  76. X
  77. Y
  78. Z

Try every key

Only 25 keys exist. Switch to decrypt and paste a ciphertext: one of these lines will be readable.

All ten ciphers

Your text through every cipher, each with its own key. Pick one to switch.

Letter frequency

InputOutput
  1. A: 0 in the input, 0 in the output
  2. B: 0 in the input, 0 in the output
  3. C: 0 in the input, 0 in the output
  4. D: 1 in the input, 0 in the output
  5. E: 1 in the input, 0 in the output
  6. F: 0 in the input, 0 in the output
  7. G: 0 in the input, 1 in the output
  8. H: 1 in the input, 1 in the output
  9. I: 0 in the input, 0 in the output
  10. J: 0 in the input, 0 in the output
  11. K: 0 in the input, 1 in the output
  12. L: 3 in the input, 0 in the output
  13. M: 0 in the input, 0 in the output
  14. N: 0 in the input, 0 in the output
  15. O: 2 in the input, 3 in the output
  16. P: 0 in the input, 0 in the output
  17. Q: 0 in the input, 0 in the output
  18. R: 1 in the input, 2 in the output
  19. S: 0 in the input, 0 in the output
  20. T: 0 in the input, 0 in the output
  21. U: 0 in the input, 1 in the output
  22. V: 0 in the input, 0 in the output
  23. W: 1 in the input, 0 in the output
  24. X: 0 in the input, 0 in the output
  25. Y: 0 in the input, 0 in the output
  26. Z: 0 in the input, 1 in the output

Caesar and Atbash only move the bars around, so the most common letter gives the key away. Vigenère flattens them, the rail fence keeps them exactly.

About this tool

  • Encoding is not encryption

    Morse code and Base64 hide nothing: anyone who knows the code can read them. Encryption needs a secret key.

  • Unbreakable for three centuries

    The Vigenère cipher, described in 1553, was called le chiffre indéchiffrable. Only in 1863 did Friedrich Kasiski publish a general way to break it.

  • The one perfect cipher

    XOR with a truly random key as long as the message, used only once, is the one-time pad. Claude Shannon proved in 1949 that it cannot be broken.

Keyboard

Space
Play or pause the steps
←→
Next or previous step
M
Switch between encrypt and decrypt
S
Swap input and result
E
Load the example
N
Next cipher
K
Random key