ShareShortcuts

KeyGen

Generates AES-CBC-256 keys for use with my KeyKit or the Shortcut CryptoKit

tuckyia
Fork “KeyGen”

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 tuckyia 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
67K
Saved
0
Actions
22
Category
API
Version
1.1
Language
EN

Generates AES-CBC-256 keys for use with my KeyKit or the Shortcut CryptoKit. Keys are copied to the clipboard and returned as an output when run. Based off of CryptoKit.

What's New

Version 1.1

Added shortcut info

Version History
1.1 Jul 17, 2019

Added shortcut info

1.0 Jul 17, 2019

First release

What it does

22 actions
  1. Dictionary
  2. Dictionary
  3. Set Variable
    dict
  4. Text
  5. Text
  6. Base64 Encode
  7. Replace Text
  8. URL
    data:text/html;base64,…
  9. Get Contents of Web Page
  10. Get Text from Input
  11. Replace Text
  12. Base64 Encode
  13. URL Encode
  14. Get Dictionary from Input
  15. Get Dictionary Value
  16. Set Variable
    result
  17. Date
  18. Adjust Date
  19. Get Variable
  20. Copy to Clipboard
  21. Show Alert
    Attention
  22. Get Variable

View as code
Beta

Every action of this Shortcut written out as Cherri, a programming language for Shortcuts. Great for learning how it works.

#include 'actions/web'
#include 'actions/text'
#include 'actions/crypto'
#define color red
#define glyph gear

@dict = {
	"isPassword": false,
	"mode": "genKey"
}
base64Encode(nil)
replaceText("\s", "", "", true)
url("data:text/html;base64,{}")
getWebpageContents("")
getText(nil)
replaceText("_", "+", "")
base64Encode(nil)
urlEncode("")
getDictionary(nil)
@result = nil['<^|$>']
currentDate()
adjustDate("", "")
// TODO: Get Variable not supported: Assign variable here to '@result'.
setClipboard(nil, true)
alert("The generated key was copied to the clipboard. Please open this shortcut, scroll to the top and paste it in the settings dictionary at the key \"generated key\". With this step the setup is complete and you can encrypt and decrypt passwords.\nThe key will be deleted from the clipboard after 90 seconds!", "Attention")
// TODO: Get Variable not supported: Assign variable here to '@result'.
Open in Cherri Playground Decompiled with cherri 2.3.0 (GPL-2.0). May need small fixes before it compiles.

Ratings & Reviews

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

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

Advertisement

More by tuckyia

See All

You Might Also Like

See All
Advertisement