ShareShortcuts

Cutshield

Secure your stuff

turtle
Fork “Cutshield”

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 turtle 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
54K
Saved
1
Actions
68
Category
Utilities
Version
1.0
Language
EN

Secure your stuff

What's New

Version 1.0

First release

Version History
1.0 Jan 18, 2021

First release

What it does

68 actions
  1. Get File
  2. If
  3. Create Folder
  4. Create Folder
  5. Text
  6. Save File
  7. Run Shortcut
    Cutshield
  8. Choose from Menu
    • 🛡 Cutshield •
  9. Choose from Menu
    🔒 Secure a file
  10. Choose from Menu
    -🛡 Cutshield-
  11. Choose from Menu
    📷 Camera
  12. Take Photo
  13. Choose from Menu
    📝 Text
  14. Ask for Input
    📝 Write the secret note 📝
  15. Choose from Menu
    📄 Browse
  16. Get File
  17. Choose from Menu
    🎞 Photos/Videos
  18. Select Photos
  19. Base64 Encode
  20. Set Variable
  21. Text
  22. Add to Variable
  23. Text
  24. Set Variable
  25. Choose from Menu
    You have encrypted a file.
  26. Choose from Menu
    Share
  27. Share
  28. Choose from Menu
    Copy
  29. Copy to Clipboard
  30. Choose from Menu
    Save
  31. Save File
  32. Choose from Menu
    QR Code
  33. Generate QR Code
  34. Save to Photo Album
  35. Choose from Menu
    Exit
  36. Stop This Shortcut
  37. Choose from Menu
    🔓 Unsecure a file
  38. Get File
  39. Split Text
  40. Get Item from List
  41. Base64 Encode
  42. Show Result
  43. Choose from Menu
    🔲 (BETA) Scan a shortcut
  44. Get My Shortcuts
  45. Choose from List
  46. Set Name
  47. Get Text from Input
  48. Set Variable
    Shortcut Content
  49. Text
  50. Set Variable
    IP Action
  51. Text
  52. Set Variable
    Location Action
  53. Text
  54. Set Variable
    Found
  55. If
  56. Text
  57. Add to Variable
  58. If
  59. Text
  60. Add to Variable
  61. Count
  62. If
  63. Show Alert
  64. If
  65. Show Alert
  66. Choose from Menu
    🛫 Exit
  67. Stop This Shortcut
  68. Run Shortcut
    Cutshield

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/text'
#include 'actions/shortcuts'
#include 'actions/sharing'
#include 'actions/photos'
#include 'actions/media'
#include 'actions/documents'
#define color yellow
#define glyph lightningBolt

const File = getFileFromFolder(, "cutshield/test.txt", false)

if !File {
	createFolder("cutshield/")
	createFolder("cutshield/files/")
	const Text = "• Reset file •\nThis is the Cutshield reset file. If  you remove this it will delete your cutshield install."
	saveFile("cutshield/test.txt", Text, true)
	runSelf()
}

menu "• 🛡 Cutshield •" {
item "🔒 Secure a file":
	menu "-🛡 Cutshield-" {
	item "📷 Camera":
		takePhoto(1, true)
	item "📝 Text":
		prompt("📝 Write the secret note 📝")
	item "📄 Browse":
		getFile("")
	item "🎞 Photos/Videos":
		selectPhotos()
	}
	base64Encode(MenuResult)
	@
	@ += ":encrypt7295$A9291A"
	@ = "{@}"
	menu "You have encrypted a file." {
	item "Share":
		share(@)
	item "Copy":
		setClipboard(@)
	item "Save":
		saveFilePrompt(@)
	item "QR Code":
		const QRCode = makeQRCode(@, [{float 0} {float 0} {float 0} {float 1}], [{float 2} {float 2} {float 2} {float 1}])
		savePhoto(QRCode, Ask)
	item "Exit":
		stop()
	}
item "🔓 Unsecure a file":
	const File1 = getFile("")
	const SplitText = splitText(File1)
	const ItemFromList = getListItem(SplitText, 1)
	base64Encode(ItemFromList)
	show()
item "🔲 (BETA) Scan a shortcut":
	const MyShortcuts = getShortcuts()
	const ChosenItem = chooseFromList(MyShortcuts, "• Cutshield Shortcut Scanner •")
	const RenamedItem = setName(ChosenItem, "SHORTCUT.plist")
	getText(RenamedItem)
	@ShortcutContent
	@IPAction = "<string>is.workflow.actions.getipaddress</string>"
	@LocationAction = "<string>is.workflow.actions.location</string>"
	@Found = "nil"
	if @ShortcutContent contains @IPAction {
		@Found += "IP Action"
	}
	if @ShortcutContent contains @LocationAction {
		@Found += "Location Action"
	}
	const Count = count(@Found)
	if Count == 1 {
		confirm("😄 This shortcut is safe!")
	} else {
		confirm("⚠️ Be careful!\n\nDetected Actions:\n{@Found}")
	}
item "🛫 Exit":
	stop()
}
runSelf()
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 turtle

See All

You Might Also Like

See All
Advertisement