Scan with your iPhone to install
Encode and decode base64!
What's New
Version 1.0
First release
What it does
17 actions-
Choose from MenuWould you like to encode or decode base64?
-
Choose from MenuEncode
-
If
-
Ask for InputWhat text would you like to encode?
-
Base64 Encode
-
Quick Look
-
If
-
Base64 Encode
-
Quick Look
-
Choose from MenuDecode
-
If
-
Ask for InputWhat text would you like to decode?
-
Base64 Encode
-
Quick Look
-
If
-
Base64 Encode
-
Quick Look
View as code
Every action of this Shortcut written out as Cherri, a programming language for Shortcuts. Great for learning how it works.
#include 'actions/crypto'
#define color darkgray
#define glyph Target
menu "Would you like to encode or decode base64?" {
item "Encode":
if !ShortcutInput {
const ProvidedInput = prompt("What text would you like to encode?")
const Base64Encoded = base64Encode(ProvidedInput)
quicklook(Base64Encoded)
}
if ShortcutInput {
const Base64Encoded1 = base64Encode(ShortcutInput)
quicklook(Base64Encoded1)
}
item "Decode":
if !ShortcutInput {
const ProvidedInput1 = prompt("What text would you like to decode?")
const Base64Encoded2 = base64Encode(ProvidedInput1)
quicklook(Base64Encoded2)
}
if ShortcutInput {
const Base64Encoded3 = base64Encode(ShortcutInput)
quicklook(Base64Encoded3)
}
}
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 devlol
You Might Also Like
Advertisement