radumarias / rencfs

An encrypted file system written in Rust that is mounted with FUSE on Linux. It can be used to create encrypted directories
Apache License 2.0
99 stars 21 forks source link

Add padding to filenames #103

Open radumarias opened 2 months ago

radumarias commented 2 months ago

Make all filenames of the same size so we hide the real length (255 - cipher_overhead chars). For that we need to add padding for shorter names.

Please calculate cipher_overhead experimentally by checking the length of the ciphertext compared to plaintext.

Corresponds to Standard level of privacy https://github.com/radumarias/rencfs/issues/215

crate https://docs.rs/pad/latest/pad/

Blocked by https://github.com/radumarias/rencfs/issues/216

HugoBal commented 3 weeks ago

Can I take this one?

radumarias commented 3 weeks ago

@HugoBal sure, I changed the desc a bit. In order to help with filename length we need to fix this first https://github.com/radumarias/rencfs/issues/216 Please take care of that first.