What is the problem you are having with rclone?
I think the crypt documentation is incorrect. It says:
Each chunk contains:
- 16 Bytes of Poly1305 authenticator
- 1 - 65536 bytes XSalsa20 encrypted data
then gives the example
1 byte file will encrypt to
- 32 bytes header
- 17 bytes data chunk
49 bytes total
1 MiB (1048576 bytes) file will encrypt to
- 32 bytes header
- 16 chunks of 65568 bytes
1049120 bytes total (a 0.05% overhead). This is the overhead for big files.
I think this second example is wrong.
It should be 16 chunks of 65536 + 16 = 65552 bytes.
A quick test with a 1 byte and 1 MiB (1048576 bytes) file (see below for comands)
1 2023-01-10 14:47:18.892514542 1b
49 2023-01-10 14:47:18.892514542 1b.bin
1048576 2023-01-10 14:41:16.517542777 1kb
1048864 2023-01-10 14:41:16.517542777 1kb.bin
1048864 and not 1049120.
Please confirm and I will fix and create a PR
Run the command 'rclone version' and share the full output of the command.
rclone v1.61.1
- os/version: darwin 12.6.1 (64 bit)
- os/kernel: 21.6.0 (x86_64)
- os/type: darwin
- os/arch: amd64
- go/version: go1.19.4
- go/linking: dynamic
- go/tags: cmount
(current as of docs version too)
Which cloud storage system are you using? (eg Google Drive)
Crypt
The command you were trying to run (eg rclone copy /tmp remote:tmp
)
These were used for the above test. Made up passwords (abcd, 1234)
rclone copy 1b crypt:
rclone copy 1kb crypt:
The rclone config contents with secrets removed.
These were used for the above test. Made up passwords (abcd, 1234)
[crypt]
type = crypt
remote = .
password = vENjtZL-E-6OQ77fGY6H4WwF57s
password2 = DJrXvTm8658avycmzDjpASEMuiI
filename_encryption = off
directory_name_encryption = false
A log from the command with the -vv
flag
N/A