rclone crypt CLI is a command-line utility which allows you to work with directories encrypted using rclone. It support over 10 commands (cat, copy, move, etc.)
I'm using a custom fork of Hidendra/rclone-crypt-rs which allows encrypting and decrypting files easily using a Read-like interface.
# List a directory
rcc ls path/to/encrypted/dir mypass123 mysalt123
# Copy a file from an encrypted directory
rcc cp path/to/encrypted/dir some/encrypted/file.txt ~/Desktop/file.txt mypass123 mysalt123
# Copy a file into an encrypted directory
rcc cp path/to/encrypted/dir some/encrypted/file.txt ~/Desktop/file.txt mypass123 mysalt123 --reverse
# Unix-line cat command
rcc cat path/to/encrypted/dir some/encrypted/file.txt mypass123 mysalt123
# ...and moreCross-compilation is possible, as long as you're not trying to compile with the mount feature enabled.
- cat
- A unix-like
catcommand.
- A unix-like
- cp
- Copy files from/into encrypted directories
- head
- A unix-like
headcommand.
- A unix-like
- ls
- List files inside an encrypted directory
- move
- Move files from/into encrypted directories
- read
- Similar to
catbut allows specifying an start offset and an amount.
- Similar to
- rm
- Deletes files
- sizeof
- Counts the size of an encrypted file (files are decrypted first)
- size
- Same as rclone's
sizebut without support for recursing.
- Same as rclone's
- tail
- A unix-like
tailcommand.
- A unix-like
- touch
- A unix-like
touchcommand.
- A unix-like
- mkdir
- Creates directories
- cryptdecode
- Same as rclone's
cryptdecode. - Notes: Unlike
rclone, this command does not require a path (or in fact any kind of access) to the encrypted directory. It just needs the password and (optionally) the salt.
- Same as rclone's
- obscure
- Same as rclone's
obscure.
- Same as rclone's
- reveal
- Reveals an obscured password.
- lsd
- Same as rclone's
lsdbut without support for recursing.
- Same as rclone's
- mount
- Requires feature
mountto be enabled when building. - Requires Unix-based OS.
- Allows mounting encrypted folders as virtual drives using
FUSE. - Notes: A custom fork of
fuse-rsandlibfuse-sysare being used since the original crates use an outdated version ofbindgenwhich causes compilation errors on macOS.
- Requires feature
- Currently it is not possible to copy/move files between two encrypted directories. If you want to do this, you need to temporarily copy/move said file to a location outside the encrypted directory, then copy/move it into the destination (encrypted) directory.
- Example:
rcc cp first/encrypted/dir some/encrypted/file.txt /tmp/file.txt mypass123 mysalt123 rcc cp second/encrypted/dir some/encrypted/file.txt /tmp/file.txt mypass123 mysalt123 --reverse
- Since I'm not yet sure about the stability of mounts, the FUSE driver does not allow write operations for now. But write support is definitely planned.