parametrix
2023-01-31 22:41:43 +08:00
首先,rclone crypt 对文件内容是 chunk and XSalsa20-Poly1305 ,文件名是 AES-EME ,配置文件中的密钥是 AES-CTR 。
第二,按照 rclone 的文档,每个 chunk:
“This uses a 32 byte (256 bit key) key derived from the user password.”
不清楚密钥是否复用,但即便是复用的情况下,(key,nonce) 对仍是安全(不会复用)的因为:
"The initial nonce is generated from the operating systems crypto strong random number generator. The nonce is incremented for each chunk read making sure each nonce is unique for each block written. The chance of a nonce being re-used is minuscule. If you wrote an exabyte of data (10¹⁸ bytes) you would have a probability of approximately 2×10⁻³² of re-using a nonce."
几 PB 而已,对于现代加密算法洒洒水啦~