Thursday, December 24, 2020

[PROJECT] Tasker Backups Encryption v1.x (TO BE DEVELOPED)

DESCRIPTION
As you may know, Tasker does not apply any type of encryption for its backups in XMLs. Therefore, here I bring you this project to try to solve that in some way, protecting both auto and manual backups from indiscrete eyes.

Main features:
• Cipher algorithm (AES) (*)
• Background encryption
• Decryption (on-demand)
• Automated manual backups (if auto-backup is disabled) (**)


This project includes an Initial Setup task that needs to be executed when it is imported from TaskerNet, or when the dev considers it is needed even not imported from TaskerNet.

The project will help preserve the privacy of the data stored in the XMLs, but will not prevent decryption if the thief knows how to reverse it, or if the device is rooted.


If using Tasker (Android API) version...
It won't require you to do nothing more special than:
1. Import project.
2. Configure it.
3. Done!

If using Tasker + Termux (all pkgs) version...
Previous Steps:
- Import project.
- Install Termux (GP/FD), Termux:Tasker (GP/FD).

* To prevent malfunction between Termux and its add-on, install both from the same source.
* In case of script update, be sure to run the 'Initial Setup' task after project import and follow 'Script Update' steps.
* Other useful cmds: cd path (navigate folders), ls path (list files), pkg list-all (list packages), pkg uninstall pkg_nme (uninstall packages).

Environment Setup:
0. Open Termux and type...
1. apt update
2. apt upgrade (yes)
3. pkg install openssl (if not installed by default)
4. pkg install openssl-tool
5. termux-setup-storage (allow)
6. mkdir -p ~/.termux/tasker
7. mv "/storage/emulated/0/Tasker/Resources/Tasker Backups Encryption/TBE_Encrypt_Files.sh" ~/.termux/tasker
8. chmod 700 ~/.termux/tasker/TBE_Encrypt_Files.sh (755 if script fails)
9. exit

Script Update:
0. Open Termux and type...
1. apt update
2. apt upgrade (yes)
3. rm ~/.termux/tasker/TBE_Encrypt_Files.sh
4. mv "/storage/emulated/0/Tasker/Resources/Tasker Backups Encryption/TBE_Encrypt_Files.sh" ~/.termux/tasker
5. chmod 700 ~/.termux/tasker/TBE_Encrypt_Files.sh (755 if script fails)
6. exit

Notes:
- The project was based on this request.
- To know more about encryption algorithms and its modes: Android API, OpenSSL.
- It is highly recommended that you keep your password in a safe place. (you were warned!)
- (*) If 'Tasker' version, Cipher (AES-ECB) will be the default algorithm (mode will always be up to the provider defaults), but others are also available. If 'Tasker + Termux' version, Cipher (AES-CBC) will be used by default, but other algorithms are available from 'openssl' package too. (if the user wants to use any kind of values not included by default, they will have to deal with the required changes on their own)
- (**) The project acts on the /storage/emulated/0/Tasker/configs dir, so be sure you have the Local Auto-Backup Max Age (Preferences > Misc) option enabled. Or use the manual backup mode. (the 'Schedule (backup)' profile is available to automate manual backups)
- In case of disaster: Tasker/Termux stops working/responding, a non-project task causes the process to be aborted, device restarted, etc., a backup will be temporarily stored in /storage/emulated/0/Tasker/Resources/Tasker Backups Encryption during the process. So, if you see the 'The working directory is not empty!' message, there you will have a clue. (files needs to be moved/deleted manualy for safety reasons)
- If you want to change your password and there are existing encrypted files, decrypt them with the old password first. Then you can proceed with setting your new password.

SCREENSHOTS
x

CREDITS
@SmartPhoneLover

CHANGELOG


DOWNLOAD
Only for development.
DOWNLOAD (Ads Supported)
Only for development.

Related Articles:

  • [PROJECT] [VIP] Terminal Log v1.1DESCRIPTION This project aims to emulate the basic operation of apps like: Terminal or Termux, at least in the majority of commands and taking into account Tasker's own limitations, showing a command log report of its executi… Read More
  • [PROJECT] [VIP] Terminal Log v1.0DESCRIPTION This project aims to emulate the basic operation of apps like: Terminal or Termux, at least in the majority of commands and taking into account Tasker's own limitations, showing a command log report of its executi… Read More
  • [PROJECT] Energy 3D Overlay v1.4DESCRIPTION This project was based on the Battery Meter Overlay app. So, it will act the same way, showing the current battery status at the top of the statusbar. This project includes an Initial Setup task that needs to be … Read More
  • [PROJECT] Bitcoin Mining Profitability Calculator v1.0DESCRIPTION This project will help you to calculate the earnings of your mining hardware, providing you the total earnings (approximate) based on: power consumption (*), electricity cost (**), per-device income and the time i… Read More
  • [PROJECT] CPU Stats v1.1DESCRIPTION This project will give you the possibility to see the usage (%) of your CPU in real time, depending on the workload on each state. Main features: • Real-time usage • Total CPU usage • Per-core CPU usage • Statusb… Read More

0 comments:

Post a Comment