Scan with your iPhone to install
Easily and quickly encode or decode base64! This shortcut also explains what base64 is 💻
What's New
Version 1.0
First release
What it does
46 actions-
CommentMade by vdiya on shortcutsgallery.com
-
Choose from Menu
-
Choose from MenuWhat is base64?
-
Show Alert
-
Choose from MenuStart decoding/encoding
-
Choose from MenuDecode or encode Base64?
-
Choose from MenuDecode
-
Choose from MenuAre you decoding text,photo,audio/file?
-
Choose from MenuText 📝
-
Ask for Input
-
Base64 Encode
-
Show Result
-
Show Alert
-
Copy to Clipboard
-
Choose from MenuPhoto 🌅
-
Ask for Input
-
Base64 Encode
-
Show Result
-
Show Alert
-
Save to Photo Album
-
Choose from MenuAudio/File 📁
-
Ask for Input
-
Base64 Encode
-
Show Result
-
Show Alert
-
Save File
-
Choose from MenuEncode
-
Choose from MenuAre you encoding text,photo,audio/file?
-
Choose from MenuText 📝
-
Ask for Input
-
Base64 Encode
-
Show Result
-
Show Alert
-
Copy to Clipboard
-
Choose from MenuPhoto 🌅
-
Select Photos
-
Base64 Encode
-
Show Result
-
Show Alert
-
Copy to Clipboard
-
Choose from MenuAudio/File 📁
-
Select File
-
Base64 Encode
-
Show Result
-
Show Alert
-
Copy to Clipboard
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/sharing'
#include 'actions/crypto'
#define color green
#define glyph laptop
// Made by vdiya on shortcutsgallery.com
menu nil {
item "What is base64?":
confirm("Base64 is a binary to a text encoding scheme that represents binary data in an ASCII string format. base64 is designed to carry data stored in binary format across the channels. It takes any form of data and transforms it into a long string of plain text.")
item "Start decoding/encoding":
menu "Decode or encode Base64?" {
item "Decode":
menu "Are you decoding text,photo,audio/file?" {
item "Text 📝":
const AskForInput = prompt("")
const Base64Encoded = base64Encode(AskForInput)
show(Base64Encoded)
confirm("Copy result to clipboard? 📋")
setClipboard(Base64Encoded)
item "Photo 🌅":
const AskForInput1 = prompt("")
const Base64Encoded1 = base64Encode(AskForInput1)
show(Base64Encoded1)
confirm("Save result to photos? 🌅")
savePhoto(Base64Encoded1)
item "Audio/File 📁":
const AskForInput2 = prompt("")
const Base64Encoded2 = base64Encode(AskForInput2)
show(Base64Encoded2)
confirm("Save result to files? 📁")
saveFilePrompt(Base64Encoded2)
}
item "Encode":
menu "Are you encoding text,photo,audio/file?" {
item "Text 📝":
const AskForInput3 = prompt("")
const Base64Encoded3 = base64Encode(AskForInput3)
show(Base64Encoded3)
confirm("Copy result to clipboard? 📋")
setClipboard(Base64Encoded3)
item "Photo 🌅":
const Photos = selectPhotos()
const Base64Encoded4 = base64Encode(Photos)
show(Base64Encoded4)
confirm("Copy result to clipboard? 📋")
setClipboard(Base64Encoded4)
item "Audio/File 📁":
const File = selectFile()
const Base64Encoded5 = base64Encode(File)
show(Base64Encoded5)
confirm("Copy result to clipboard? 📋")
setClipboard(Base64Encoded5)
}
}
}
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 vdiya
You Might Also Like
Advertisement