-
Notifications
You must be signed in to change notification settings - Fork 96
Description
Currently Discord is able to see all data that gets stored onto someones DDrive because they are split into chunks but still saved unencrypted. It would be awesome to have encryption in place so Discord (even after reassembling the chunks into a full file) isn't able to view the contents until they also know the secret key. The key can be derived as by many products from a password given by the user on startup as parameter like --encrypt "ThisPasswordWillMakeMyDataOnDiscordSave". Encryption should be optionally added as additional feature (to not introduce breaking changes) so when the flag isn't supplied the program still just doesn't use it.
Encryption can be done very securely via AES256 encryption.
The key derivation can be made very securely by utilizing a good key derivation function like argon2.
It should use an IV for each part instead of for each file to add some additional security (as it's already split anyway).