rclone-decrypt
Status
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_4567asd8fasdf67asdfwhere4567asd8fasdf67asdfis the encrypted part, the filename must be renamed to exclude thepath_to_encypted_file_portion. Otherwise rclone will complain about invalid encryption names. - Windows is supported thanks to the cross-platform nature of Flet.
- The GUI has been modernized using Flet, providing a cleaner look and better cross-platform support.
Installation
pip3 install rclone-decrypt
Requirements
General
rclonemust be installed and available in your system's PATH.- Windows Users: Download
rclonefrom rclone.org and extract it. Then, add the directory containingrclone.exeto your System Environment Variables (PATH).
- Windows Users: Download
Python environment
Python >= 3.10
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.
- Use the Add Files or Add Folder buttons to select items for decryption.
- Selected items will be listed in the main area. You can remove individual items using the "X" button.
- By default, decrypted files are saved to
~/Downloads/rclone-decrypted. - A default location for
rclone.confis provided automatically based on your OS, but you can browse for others.
rclone-decrypt --gui
Troubleshooting (Linux)
If you encounter an error like libmpv.so.1: cannot open shared object file on Linux (e.g., Ubuntu 24.04), you may need to install libmpv2 and create a symlink:
sudo apt update && sudo apt install libmpv2
sudo ln -s /usr/lib/x86_64-linux-gnu/libmpv.so.2 /usr/lib/x86_64-linux-gnu/libmpv.so.1
Development
python3 -m venv .venv
source .venv/bin/activate
poetry install
poetry run pytest
poetry run flake8
deactivate
Metadata
Release files for rclone_decrypt 0.2.0
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| rclone_decrypt-0.2.0.tar.gz | 10.9 kB | Without provenance | Details for rclone_decrypt-0.2.0.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| rclone_decrypt-0.2.0-py3-none-any.whl | Python 3 | none | any | Details for rclone_decrypt-0.2.0-py3-none-any.whl |
Total release size: 21.9 kB
Release files / rclone_decrypt-0.2.0.tar.gz
| Download URL | rclone_decrypt-0.2.0.tar.gz |
|---|---|
| Size | 10.9 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
c567ea269b8d62d4319de7af643644dbb74c1f6bfd4a3efa11eec4925d47ce9d
|
|
BLAKE2b-256 checksum How to use checksums |
c2cd2045879b4dcb297c0ff22a6e87a02323089cb7f29f39571b9a839f3180a6
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
poetry/2.3.2 CPython/3.11.0 Linux/6.14.0-1017-azure
|
Release files / rclone_decrypt-0.2.0-py3-none-any.whl
| Download URL | rclone_decrypt-0.2.0-py3-none-any.whl |
|---|---|
| Size | 11.1 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
1cd77a4869d20e96241ac59d3082a6cfe5cb191f0a9dd06ad52d07122fb2bb4a
|
|
BLAKE2b-256 checksum How to use checksums |
8f3c1557f5b9cb3b22f2878a99c27a29f24985653217fdecd9170d1b6f87e44e
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
poetry/2.3.2 CPython/3.11.0 Linux/6.14.0-1017-azure
|
Security for rclone_decrypt 0.2.0
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.