Are you thinking to encrypt some important data? Then you can use gocryptfs...
apt-get install gocryptfs
gocryptfs -version
mkdir secretdir
gocryptfs -init secretdir
yourpassword
Your master key is generated and displayed. Copy and save this somewhere safe and private.
The encrypted directory is mounted on a mount point, which is simply an empty directory. We are going to create one called ''subdir''
We can now mount the encrypted directory on the mount point. Strictly speaking, what’s actually mounted is the gocryptfs file system inside the encrypted directory. We’re prompted for the password. gocryptfs secretdir subdir
When the encrypted directory is mounted, we can use the mount point directory the same as we would any other. Anything we edit and create in this directory is actually written to the mounted, encrypted directory.
We can create a simple text file, like the following: touch mysecretfile.txt
We can edit it, add some content to it, and then save the file.
If we switch to our encrypted directory as shown below, we see that a new file with an encrypted name has been created.
If we try to view the contents of the encrypted file, we can see that it is really encrypted:
fusermount -u subdir