bailey27 / cppcryptfs

cppcryptfs is an implementation of the gocryptfs encrypted overlay filesystem in C++ for Windows.
Other
658 stars 58 forks source link

Add extension to encrypted file. #185

Open 6677028 opened 9 months ago

6677028 commented 9 months ago

I am using this software. I have another idea that you can add the feature to encode the file extensions. Currently, the app has the option to encrypt file names. But with file name encryption, if that person deletes a character in the encrypted file name, the file will be corrupted. Therefore, to be safe, I think we just need to encode the file name extension into a similar extension name, such as .cpp. Hope you will develop this app for a long time.

yfdyh000 commented 9 months ago

I don't understand the meaning of this request. Do you need optional encryption for the real extension? But the file cannot be opened. Adding an extension does not resolve the corruption if the name is changed manually. Alternatively, it is not secure to encrypt only the extension. Saving encrypted things to extension is not appropriate because they are too long.

6677028 commented 9 months ago

Thank you for your very quick reply.

. I use your app to encrypt my data. But the File names I chose are Plain text. I have some reason for not encrypting the filename.

. As I know, Ransomware is usually attacked on certain file types like . doc, xlsx, PDF....so if you don't use encrypted file names, We will be attacked by Ransomware. Some encryption software also works well to change the extension like Kruptos 2 which added the extension to .K2p or Boxcryptor which added the extension .Bc ....... So we don't need to encode the file name. so I want you to add such feature to CPPcryptfs. In my opinion you can add an extension to all encrypted files like .cpp and hide the default extension. Doing so will not affect filename encoding.

This is the way of Kruptos 2 This is the way of Boxcryptor

6677028 commented 9 months ago

Who can help me?

red0888 commented 9 months ago

I agree, this is a very important feature that must be added. The final file extension could also be encrypted and appended to the encrypted file name and then accordingly, can identify and decrypt to the correct file extension.

I see no reason why this shouldn't be added...