How to Encrypt Individual Files and Folders via GUI
Forum rules
Before you post read how to get help. Topics in this forum are automatically closed 6 months after creation.
Before you post read how to get help. Topics in this forum are automatically closed 6 months after creation.
How to Encrypt Individual Files and Folders via GUI
I'm going to install Mint on a 120GB SSD and move my Home directory to a second 1TB HDD. I've found that encrypting the entire 1TB HDD, or encrypting the entire Home directory is a major headache. So I've decided that just encrypting particular files/folders in the Home directory will be sufficient. I don't need everything encrypted, just the important stuff. I thought that this would be a lot easier to implement in Mint via the GUI but am finding this not to be the case.
I want to right-click on a folder and have an option to encrypt it, and have found many tutorials on the Internet for how to accomplish this but it is not working for me in testing. All those tutorials say to install seahorse-nautilus and seahorse-plugins, and after a restart I should see an 'Encrypt' option appear on the menu when I right-click on a file or folder. That's not happening.
So, how does one enable file/folder encryption in Mint via the GUI? What am I missing?
I want to right-click on a folder and have an option to encrypt it, and have found many tutorials on the Internet for how to accomplish this but it is not working for me in testing. All those tutorials say to install seahorse-nautilus and seahorse-plugins, and after a restart I should see an 'Encrypt' option appear on the menu when I right-click on a file or folder. That's not happening.
So, how does one enable file/folder encryption in Mint via the GUI? What am I missing?
Last edited by LockBot on Wed Dec 28, 2022 7:16 am, edited 1 time in total.
Reason: Topic automatically closed 6 months after creation. New replies are no longer allowed.
Reason: Topic automatically closed 6 months after creation. New replies are no longer allowed.
- Lord Boltar
- Level 5
- Posts: 803
- Joined: Mon Jan 09, 2017 7:24 pm
- Location: Sunny Florida
Re: How to Encrypt Individual Files and Folders via GUI
Check out eCryptFS
http://ecryptfs.org/
and File Lock PEA but it needs Java runtime installed to work
https://eck.cologne/peafactory/en/html/file_pea.html
hope this helps
There use be a program called CryptKeeper but I do not know if it is supported or not any longer
http://ecryptfs.org/
and File Lock PEA but it needs Java runtime installed to work
https://eck.cologne/peafactory/en/html/file_pea.html
hope this helps
There use be a program called CryptKeeper but I do not know if it is supported or not any longer
IF your problem has been solved, please edit your original post and add [SOLVED] to the beginning of the Subject Line. It helps other members
The only way for evil to prosper is for good men to do nothing
The only way for evil to prosper is for good men to do nothing
Re: How to Encrypt Individual Files and Folders via GUI
Thanks for the information. Being new to encryption on Linux I seem to be a little confused on exactly how it works.
So, for example, in Windows, using EFS, when I encrypt a folder, not only are all of the files in the folder encrypted, but any new files saved to the folder will be automatically encrypted as well. That doesn't appear to be the case in Mint. Is that right?
When encrypting a file in Mint an encrypted copy of the file is created, also leaving an unencrypted copy in the folder. Is that supposed to happen? That seems REALLY strange to me. What am I supposed to do, just remember to delete the left-over unencrypted original file? What if I get distracted and forget? That doesn't seem safe. Why isn't the encrypted copy created and then the old copy it was encrypted from automatically deleted from the system by the encryption program?
So, for example, in Windows, using EFS, when I encrypt a folder, not only are all of the files in the folder encrypted, but any new files saved to the folder will be automatically encrypted as well. That doesn't appear to be the case in Mint. Is that right?
When encrypting a file in Mint an encrypted copy of the file is created, also leaving an unencrypted copy in the folder. Is that supposed to happen? That seems REALLY strange to me. What am I supposed to do, just remember to delete the left-over unencrypted original file? What if I get distracted and forget? That doesn't seem safe. Why isn't the encrypted copy created and then the old copy it was encrypted from automatically deleted from the system by the encryption program?
Re: How to Encrypt Individual Files and Folders via GUI
Take a look at Gnome Encfs Manager, this mounts an fake drive and any folders or files you place on this drive are encrypted.
- Lord Boltar
- Level 5
- Posts: 803
- Joined: Mon Jan 09, 2017 7:24 pm
- Location: Sunny Florida
Re: How to Encrypt Individual Files and Folders via GUI
A simple way to encrypt a single file is with openssl:
This will prompt you for a passphrase, which you will need to enter later when decrypting the file.
Code: Select all
openssl des3 < youfile.txt > yourfile.txt.des3
Code: Select all
openssl des3 -d < yourfile.txt.des3 > yourfile.txt.decrypted
IF your problem has been solved, please edit your original post and add [SOLVED] to the beginning of the Subject Line. It helps other members
The only way for evil to prosper is for good men to do nothing
The only way for evil to prosper is for good men to do nothing
Re: How to Encrypt Individual Files and Folders via GUI
Using GPG to encrypt files via the GUI (right-click and selecting 'Encrypt') just makes an encrypted copy of the original file, while leaving the original file unencrypted in the directory. WOW! Is it just me or is that a totally fatal flaw? Let's say I have a directory with 200 files in it that I want to encrypt. I right-click on the folder and encrypt all of the files within. Now I have 400 files in the folder; the 200 encrypted copies and the 200 unencrypted originals. confused?!?! Who was the genius who thought that this was how this should work in Linux? Why does GPG have to make an encrypted copy of the file instead of just encrypting the original?
I REALLY want to move to Mint from Windows, but stuff like this is totally maddening, and gives me pause. Am I missing some other option that will just encrypt the original file instead of creating an encrypted copy of the file in Linux? I don't want to create hidden encrypted folders and what not that can be done with other utilities; I just want to encrypt files without leaving behind unencrypted copies. Is this possible via a GUI tool in Linux?
I REALLY want to move to Mint from Windows, but stuff like this is totally maddening, and gives me pause. Am I missing some other option that will just encrypt the original file instead of creating an encrypted copy of the file in Linux? I don't want to create hidden encrypted folders and what not that can be done with other utilities; I just want to encrypt files without leaving behind unencrypted copies. Is this possible via a GUI tool in Linux?
Re: How to Encrypt Individual Files and Folders via GUI
Pretty funny. You've now invested about ten times as much effort as it would have taken to learn how to encrypt your home folder on a separate partition. And, no, they're not going to redesign Linux per your specifications. It's an "as is, no warranties" product.
ETA: For context, the OP's prior thread.
ETA: For context, the OP's prior thread.
Last edited by pbear on Wed Apr 17, 2019 11:34 am, edited 2 times in total.
Re: How to Encrypt Individual Files and Folders via GUI
All the default file managers allow for custom scripting ("actions") to do whatever you want them to.
- catweazel
- Level 19
- Posts: 9763
- Joined: Fri Oct 12, 2012 9:44 pm
- Location: Australian Antarctic Territory
Re: How to Encrypt Individual Files and Folders via GUI
VeraCrypt.cpcarl wrote: ⤴Tue Apr 16, 2019 11:24 pm ... WOW! Is it just me or is that a totally fatal flaw? ... confused?!?! Who was the genius who thought that this was how this should work in Linux? Why does GPG have to make an encrypted copy of the file instead of just encrypting the original?
... I don't want to create hidden encrypted folders and what not that can be done with other utilities; I just want to encrypt files without leaving behind unencrypted copies. Is this possible via a GUI tool in Linux?
"There is, ultimately, only one truth -- cogito, ergo sum -- everything else is an assumption." - Me, my swansong.
Re: How to Encrypt Individual Files and Folders via GUI
I use both the Gnome Encfs Manager and veracrypt and they work fine for me.
Thinkcentre M720Q - LM21.3 cinnamon, 4 x T430 - LM21.3 cinnamon, Homebrew desktop i5-8400+GTX1080 Cinnamon 19.0
Re: How to Encrypt Individual Files and Folders via GUI
Hi cpcarl,
Welcome to the wonderful world of Linux Mint and its excellent forum!
I just read your post and the good replies to it. Here are my thoughts on this as well.
It would help to know more about your system setup. If you run "inxi -Fxzd" and "lsusb" from the console terminal prompt, highlight the results, copy and paste them back here, that should provide enough information.
viewtopic.php?f=90&t=279706&hilit=encrypt
One of the easiest options is to install "p7zip-full" from the "Synaptic Package Manager (SPM)" and just right-click a folder or file(s) from your file manager and use archive "compression" with password encryption, use the "move" option to remove the original files after archiving (compressing). "PeaZip" is another wonderful archiving application that can be installed in Linux Mint.
You can also you use your GPG encryption key (easily create one if you do not have one) and use various applications and or applets to encrypt files and or folders. (GPA, KGpg, Kelopatra, etc...)
The "disks" application can easily encrypt a drive's partition or a USB stick.
(Solved)How to install Veracrypt - Linux Mint Forums
viewtopic.php?f=90&t=275495&hilit=encrypt
SiriKali works on Linux, macOS and Microsoft Windows Operating Systems | SiriKali
https://mhogomchungu.github.io/sirikali/
SiriKali - Easy way to Encrypt & Decrypt folders in Linux | 2daygeek.com
https://www.2daygeek.com/sirikali-passw ... ory-linux/
Hope this helps ...
Welcome to the wonderful world of Linux Mint and its excellent forum!
I just read your post and the good replies to it. Here are my thoughts on this as well.
It would help to know more about your system setup. If you run "inxi -Fxzd" and "lsusb" from the console terminal prompt, highlight the results, copy and paste them back here, that should provide enough information.
Encrypting your Home folder is simple if you select that option during the installation of Linux Mint. I do not see the advantage of moving your Home directory to another drive?cpcarl wrote:I'm going to install Mint on a 120GB SSD and move my Home directory to a second 1TB HDD. I've found that encrypting the entire 1TB HDD, or encrypting the entire Home directory is a major headache.
File encryption ideas for newbies - Linux Mint Forumscpcarl wrote:So I've decided that just encrypting particular files/folders in the Home directory will be sufficient. I don't need everything encrypted, just the important stuff. I thought that this would be a lot easier to implement in Mint via the GUI but am finding this not to be the case.
viewtopic.php?f=90&t=279706&hilit=encrypt
As you already know, there are various options for encrypting folders and or files and or drives and their partitions.cpcarl wrote:I want to right-click on a folder and have an option to encrypt it, and have found many tutorials on the Internet for how to accomplish this but it is not working for me in testing. All those tutorials say to install seahorse-nautilus and seahorse-plugins, and after a restart I should see an 'Encrypt' option appear on the menu when I right-click on a file or folder. That's not happening. So, how does one enable file/folder encryption in Mint via the GUI? What am I missing?
One of the easiest options is to install "p7zip-full" from the "Synaptic Package Manager (SPM)" and just right-click a folder or file(s) from your file manager and use archive "compression" with password encryption, use the "move" option to remove the original files after archiving (compressing). "PeaZip" is another wonderful archiving application that can be installed in Linux Mint.
You can also you use your GPG encryption key (easily create one if you do not have one) and use various applications and or applets to encrypt files and or folders. (GPA, KGpg, Kelopatra, etc...)
The "disks" application can easily encrypt a drive's partition or a USB stick.
(Solved)How to install Veracrypt - Linux Mint Forums
viewtopic.php?f=90&t=275495&hilit=encrypt
SiriKali works on Linux, macOS and Microsoft Windows Operating Systems | SiriKali
https://mhogomchungu.github.io/sirikali/
SiriKali - Easy way to Encrypt & Decrypt folders in Linux | 2daygeek.com
https://www.2daygeek.com/sirikali-passw ... ory-linux/
Hope this helps ...
Phd21: Mint 20 Cinnamon & xKDE (Mint Xfce + Kubuntu KDE) & KDE Neon 64-bit (new based on Ubuntu 20.04) Awesome OS's, Dell Inspiron I5 7000 (7573) 2 in 1 touch screen, Dell OptiPlex 780 Core2Duo E8400 3GHz,4gb Ram, Intel 4 Graphics.
Re: How to Encrypt Individual Files and Folders via GUI
Thank you for all of the great responses. Being somewhat of a Linux noob I don't quite understand it all, but I'm working on it. Coming from a Windows background, encryption in Linux is totally foreign to me, so I'm trying to get a grasp on it.
What I did was install Mint on my 120GB SSD, without encryption at installation. I then moved /home to a second internal hard drive. At that point, via the GUI there is no option available to encrypt the second drive that /home resides on. 'Edit Encryption Options...' is unavailable from the "Additional partition options" menu.
So, in this scenario, how does one now encrypt the second hard drive that my /home directory now resides on in Mint. I tried this (https://www.howtogeek.com/116032/how-to ... ng-ubuntu/) in VM tests for Mint and could never set the passphrase, either via the popup that should appear or via the command line. Though in my tests with other distros I was able to get the popup and set the passphrase for the newly encrypted drive. ???
What I did was install Mint on my 120GB SSD, without encryption at installation. I then moved /home to a second internal hard drive. At that point, via the GUI there is no option available to encrypt the second drive that /home resides on. 'Edit Encryption Options...' is unavailable from the "Additional partition options" menu.
So, in this scenario, how does one now encrypt the second hard drive that my /home directory now resides on in Mint. I tried this (https://www.howtogeek.com/116032/how-to ... ng-ubuntu/) in VM tests for Mint and could never set the passphrase, either via the popup that should appear or via the command line. Though in my tests with other distros I was able to get the popup and set the passphrase for the newly encrypted drive. ???
- catweazel
- Level 19
- Posts: 9763
- Joined: Fri Oct 12, 2012 9:44 pm
- Location: Australian Antarctic Territory
Re: How to Encrypt Individual Files and Folders via GUI
This isn't going to be the answer you're looking for:
If you're just experimenting then fine, that's a good way to learn, but if your data means something to you then you are likely headed for disaster. You have ignored the best advice given to you, so I will state it very plainly: Linux encryption isn't for the feint of heart. You need to know your way around Linux, especially if something goes south. There are enough posts in the forum from people who have lost data due to their lack of experience with both encryption and encrypted backup so you need to be prepared to take the risk of your lost data becoming a statistic.
As for the best advice that you've ignored, three posters have told you about VeraCrypt.
"There is, ultimately, only one truth -- cogito, ergo sum -- everything else is an assumption." - Me, my swansong.