ShareShortcuts

Caesar Cipher

This shortcut will allow you to encrypt and decrypt text using a Caesar Cipher method

wfunderberg
Fork “Caesar Cipher”

Built something new on top of this Shortcut? Share it as a fork: it becomes a Shortcut of your own, which you manage, and both pages link to each other so wfunderberg gets credit.

  1. 1Get the Shortcut and change it in the Shortcuts app. Give it a name of its own.
  2. 2Share it from the Shortcuts app and copy the iCloud link.
  3. 3Come back here, paste the link and describe what is different, e.g. “Added a step that uses Apple Intelligence to personalise the text.”
Downloads
69K
Saved
0
Actions
75
Category
Utilities
Version
1.0
Language
EN

This shortcut will allow you to encrypt and decrypt text using a Caesar Cipher method. When encrypting, the shortcut will append a 🤫 emoji in front of the text which will be used when decrypting the text.

The Caesar cipher is one of the earliest known and simplest ciphers. It is a type of substitution cipher in which each letter in the plaintext is 'shifted' a certain number of places down the alphabet. For example, with a shift of 1, A would be replaced by B, B would become C, and so on. The method is named after Julius Caesar, who apparently used it to communicate with his generals.

This shortcut should be used for entertainment and learning only.

What's New

Version 1.0

First release

Version History
1.0 Apr 27, 2019

First release

What it does

75 actions
  1. Comment
    The Caesar cipher is one of the earliest known and simplest ciphers. It is a type of substitution cipher in which each letter in the plaintext is 'shifted' a certain number of places down the alphabet. For example, with a shift of 1, A would be repl…
  2. Comment
    Create a dictionary object and fill it with the characters that will be deciphered. The Key value will be used to determine what that character should be deciphered into.
  3. Dictionary
  4. Set Variable
    CeasarCipher
  5. Comment
    Get the text that will be used to decipher. Decryption will take place if it has the 🤫 emoji in front of the text and encryption will take place if it doesn't.
  6. Ask for Input
    Text to encrypt / decrypt
  7. Set Variable
    UserInput
  8. Count
  9. If
  10. Get Variable
  11. Split Text
  12. Set Variable
    UserInputArray
  13. Get Item from List
  14. If
  15. Comment
    This section decrypts the text
  16. Get Variable
  17. Get Dictionary Value
  18. List
  19. Set Variable
    KeysList
  20. Get Variable
  21. Get Dictionary Value
  22. List
  23. Set Variable
    ValuesList
  24. Get Variable
  25. Repeat with Each
  26. Set Variable
    CurrentUserInputArrayValue
  27. Get Variable
  28. Set Variable
    DecodedCharacter
  29. Number
  30. Set Variable
    FoundIt
  31. Number
  32. Set Variable
    Counter
  33. Get Variable
  34. Repeat with Each
  35. Set Variable
    CurrentValuesListValue
  36. Get Variable
  37. If
  38. Get Variable
  39. Calculate
  40. Set Variable
    Counter
  41. Get Variable
  42. If
  43. Number
  44. Set Variable
    FoundIt
  45. Get Variable
  46. Get Item from List
  47. Set Variable
    DecodedCharacter
  48. Get Variable
  49. Add to Variable
  50. Text
  51. Replace Text
  52. Set Variable
    ProcessedText
  53. If
  54. Comment
    This section encrypts the text
  55. Text
  56. Set Variable
    ProcessedText
  57. Get Variable
  58. Repeat with Each
  59. Get Variable
  60. Get Dictionary Value
  61. Set Variable
    CurrentValue
  62. Count
  63. If
  64. Text
  65. Add to Variable
  66. If
  67. Text
  68. Add to Variable
  69. Text
  70. Replace Text
  71. Set Variable
    ProcessedText
  72. Copy to Clipboard
  73. Show Alert
    Copied to clipboard
  74. If
  75. Show Alert

Ratings & Reviews

Write a Review
–
out of 5
★★★★★
★★★★
★★★
★★
★
0 ratings

No reviews yet. Be the first to share what you think!

Advertisement

You Might Also Like

See All
Advertisement