Skip to main content

Wrapper around rclone to decrypt files encrypted with rclone

Project description

rclone-decrypt

Status

test build

Description

rclone-decrypt is a utility which will decrypt files that were encrypted with rclone. The anticipated use-case is that a user has independently downloaded an encrypted file or directory directly from a remote cloud storage (Backblaze B2/Amazon Drive/Dropbox/etc...) and now wants to decrypt it.

Given an rclone.conf file, this tool is simply a wrapper around rclone which sets up a "local remote" to host the downloaded encrypted files and then calls rclone copy in order to decrypt the files into a desired output folder.

Ostensibly I did this because my family backs-up our local NAS to a remote host but the rest of my family prefers to download files one-off from the cloud host and are not comfortable using the rclone CLI. This offers a CLI in addition to an easy-to-use GUI to make life simple.

Notes

  • Use at your own risk! Be sure you have copies of anything you're trying to decrypt, just in case something goes wrong!
  • When decrypting files with encrypted filenames or folder names, the directory or filename must only consist of the encrypted version. For example, if an encrypted file was downloaded as path_to_encypted_file_4567asd8fasdf67asdf where 4567asd8fasdf67asdf is the encrypted part, the filename must be renamed to exclude the path_to_encypted_file_ portion. Otherwise rclone will complain about invalid encryption names.
  • Windows is not currently supported, although it probably would not take very much work to get it there. I do not have ready access to a windows environment on which to test.
  • I'd love to make the GUI look more modern, but most solutions involve a style which seems incompatible with tkinterdnd2 which provides the drag and drop feature.

Installation

pip3 install rclone-decrypt

Requirements

General

  • rclone must be installed and in $PATH

Python environment

  • Python >= 3.8.1
  • Python-tk must be installed if using the GUI

Executable

UNDER DEVELOPMENT An OSX .app is generated but is currently untested.

Usage

CLI usage

> rclone-decrypt --config /path/to/rclone.conf --files /path/to/file/or/dir/

Example usages:

> rclone-decrypt --config rclone.conf --files /home/my_encrypted_dir
> rclone-decrypt --config rclone.conf --files /0f12hh28evsof1kgflv67ldcn/9g6h49o4ht35u7o5e4iv5a1h28
> rclone-decrypt --config rclone.conf --files /home/my_encrypted_file.bin

GUI usage

If the python package is installed directly then the GUI can be invoked from the command line, as shown below. Otherwise the packaged binary can be downloaded and executed directly.

  • Files can be dropped directly into the big white box.
  • As files are dropped, if no output directory has been provided though the file dialog, an output directory called 'out' will be created at the same directory level as the last dropped file to be decrypted.
  • A default location for rclone.conf is provided, others can be browsed for.
rclone-decrypt --gui

rclone_example

Development

source .venv/bin/activate
poetry install
poetry run pytest
poetry run flake8
deactivate

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

rclone_decrypt-0.1.7.tar.gz (7.5 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

rclone_decrypt-0.1.7-py3-none-any.whl (9.2 kB view details)

Uploaded Python 3

File details

Details for the file rclone_decrypt-0.1.7.tar.gz.

File metadata

  • Download URL: rclone_decrypt-0.1.7.tar.gz
  • Upload date:
  • Size: 7.5 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/2.3.2 CPython/3.11.0 Linux/6.14.0-1017-azure

File hashes

Hashes for rclone_decrypt-0.1.7.tar.gz
Algorithm Hash digest
SHA256 923af357d5d927e25d59f1019b95d17461cc07ae21b5301c3545a50ab23d5a53
MD5 3d453a0869fad765a7a9e83fa5532356
BLAKE2b-256 d026558d70994bde3002cdb7e51e4087c6dcaf5b869dd5f6aca3b6a8ae9bc115

See more details on using hashes here.

File details

Details for the file rclone_decrypt-0.1.7-py3-none-any.whl.

File metadata

  • Download URL: rclone_decrypt-0.1.7-py3-none-any.whl
  • Upload date:
  • Size: 9.2 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/2.3.2 CPython/3.11.0 Linux/6.14.0-1017-azure

File hashes

Hashes for rclone_decrypt-0.1.7-py3-none-any.whl
Algorithm Hash digest
SHA256 3f215bac0eef83d6f39723b937bb570f354ce4456b0611ecf79bd3467a89ca34
MD5 86ef9e6c8a2e23936bc10469899f9569
BLAKE2b-256 4a8c72ec9f83aef9d2c73e3a9b8b918e2cc519c2b82bc667a66bd0fd611b6cdc

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page