Skip to content

Add extension to encrypted file. #185

Open

Description

@6677028

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.

Activity

  1. yfdyh000 commented on Nov 12, 2023

    @yfdyh000
    Contributor

    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.

  2. 6677028 commented on Nov 12, 2023

    @6677028
    Author

    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.

    • 1- I often have to copy and transfer files so I want to keep the file names. That way I can select the file that needs to be moved
    • 2- when encrypting file names, if someone changes the encrypted file name then the file cannot be opened again.

    #. 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

  3. changed the title [-]Proposed extension encoding[/-] [+]Add extension to encrypted file.[/+] on Nov 14, 2023
  4. 6677028 commented on Nov 25, 2023

    @6677028
    Author

    Who can help me?

  5. red0888 commented on Dec 7, 2023

    @red0888

    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...

  6. tew42 commented on Oct 17, 2024

    @tew42

    While I don't think it's a critical feature (for a great piece of software, by the way, thanks - had to migrate from my prior solution and quite liking this so far!), I do also think it would be useful for "plain text" filenames to add a generic extension (e.g., .cfs) when encrypted - not only for the ransomware concerns raised earlier, but also to prevent mixing up encrypted files & folders with unencrypted ones in day-to-day use:
    Scenario 1: I might accidentally select a "recent file" to attach to an email that is in fact the encrypted version and thus useless to the recipient
    Scenario 2: I might mess up some copy/pasting of files, putting an unencrypted file into the encrypted folder structure, which won't stand out in any way until I try to open it

    An important question here, though, I guess, is whether introducing such a file-extension feature would still preserve the compatibility with gocryptfs - and since I guess it would not, this is likely a feature request that should go "upstream" first?

  7. 6677028 commented on Nov 9, 2024

    @6677028
    Author

    I am still using this software that has encrypted my data. I've always been following this issue. Hopefully, DEV can consider adding this feature to make the software complete

  8. ccchan234 commented on Jul 25, 2025

    @ccchan234

    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.

    why you say so?

    for my understanding,

    u just need the .conf file, the diriv, and then the encrypted file.

    suppose your encrypted file is ajhsdfljkahsdf8asda etc,

    u can rename it, then it wont appear in the unencrypted window;
    after that you simply rename it back and it will become normal? thanks

  9. 6677028 commented on Sep 24, 2025

    @6677028
    Author

    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.

    why you say so?

    for my understanding,

    u just need the .conf file, the diriv, and then the encrypted file.

    suppose your encrypted file is ajhsdfljkahsdf8asda etc,

    u can rename it, then it wont appear in the unencrypted window; after that you simply rename it back and it will become normal? thanks

    But do you remember a name like that "suppose your encrypted file is ajhsdfljkahsdf8asda etc," ? When you can't remember it, you will never be able to retrieve that file.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions