ShareShortcuts

Cutshield

Secure your stuff

turtle
Создать форк «Cutshield»

Создали что-то новое на основе этой команды? Поделитесь ей как форком: она станет вашей собственной командой, которой вы управляете, а обе страницы будут ссылаться друг на друга, чтобы turtle получил(а) признание.

  1. 1Получите команду и измените её в приложении «Быстрые команды». Дайте ей собственное название.
  2. 2Поделись ею из приложения «Быстрые команды» и скопируй ссылку iCloud.
  3. 3Вернись сюда, вставь ссылку и опиши, что изменилось, например: «Добавлен шаг, который использует Apple Intelligence для персонализации текста».
Загрузки
54K
Сохранено
1
Действия
68
Категория
Utilities
Версия
1.0
Язык
EN

Secure your stuff

Что нового

Версия 1.0

First release

История версий
1.0 18 янв 2021 г.

First release

Что делает

Действий: 68
  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

Посмотреть как код
Бета

Все действия этой команды, записанные на Cherri — языке программирования для приложения «Быстрые команды». Отлично подходит, чтобы разобраться, как она работает.

#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()
Открыть в Cherri Playground Декомпилировано с помощью cherri 2.3.0 (GPL-2.0). Перед компиляцией могут понадобиться небольшие исправления.

Оценки и отзывы

Написать отзыв
–
из 5
★★★★★
★★★★
★★★
★★
★
0 ratings

Пока нет отзывов. Поделись мнением первым!

Реклама

Ещё от turtle

См. все

Вам также может понравиться

См. все
Реклама