{"id":21212,"date":"2023-09-27T09:53:32","date_gmt":"2023-09-27T09:53:32","guid":{"rendered":"https:\/\/linuxways.net\/?p=21212"},"modified":"2023-09-27T09:53:32","modified_gmt":"2023-09-27T09:53:32","slug":"how-to-encrypt-file-system-in-ubuntu","status":"publish","type":"post","link":"https:\/\/linuxways.net\/de\/ubuntu\/how-to-encrypt-file-system-in-ubuntu\/","title":{"rendered":"How to Encrypt File System in Ubuntu?"},"content":{"rendered":"<p><strong>Ubuntu <\/strong>is among the secured distros of Linux Distributions. It provides us with cryptographic packages which enable them to run in high-security environments. While maintaining a secure system is crucial, ensuring the security of your files and folders within the Linux file system is equally important.<\/p>\n<p>This article discusses the process and steps required to make our Ubuntu system more secure.<\/p>\n<h2><strong>How to Encrypt File System in Ubuntu 22.04?<\/strong><\/h2>\n<p>A File Encryption System is the process of Encoding Files which makes the file undecipherable. The encrypted file can only be accessed or read by an authenticated user. The step-by-step procedure for encrypting files and folders with passwords in Ubuntu is explained below.<\/p>\n<h2><strong>How to Encrypt a File in Ubuntu?<\/strong><\/h2>\n<p>With encryption, the privacy and security of our files and folders can be enhanced. The data that is sensitive should be kept encrypted. Follow the steps below to encrypt files in Ubuntu.<\/p>\n<h3><strong>Step 1: Install GnuPG<\/strong><\/h3>\n<p><strong>GnuPG<\/strong> or \u201c<strong>Pretty Good Privacy<\/strong>\u201d is a free replacement for Symantec\u2019s cryptography suites. It has a versatile key management system and helps to encrypt your data. To install GnuPG use the command:<\/p>\n<div class=\"codecolorer-container bash blackboard\" style=\"width:100%;\"><div class=\"bash codecolorer\"><span class=\"kw2\">sudo<\/span> apt <span class=\"kw2\">install<\/span> gnupg2<\/div><\/div>\n<p><img loading=\"lazy\" decoding=\"async\" width=\"888\" height=\"353\" class=\"wp-image-21213\" src=\"http:\/\/linuxways.net\/wp-content\/uploads\/2023\/09\/word-image-21212-1.png\" srcset=\"https:\/\/linuxways.net\/wp-content\/uploads\/2023\/09\/word-image-21212-1.png 888w, https:\/\/linuxways.net\/wp-content\/uploads\/2023\/09\/word-image-21212-1-300x119.png 300w, https:\/\/linuxways.net\/wp-content\/uploads\/2023\/09\/word-image-21212-1-768x305.png 768w\" sizes=\"auto, (max-width: 888px) 100vw, 888px\" \/><\/p>\n<h3><strong>Step 2: Setting Cipher Algorithm<\/strong><\/h3>\n<p>A Cipher Algorithm is used to Encrypt and Decrypt Data or a File. With the Cipher Algorithm, we can convert a plaintext into a ciphertext. The ciphertext is unreadable and it has to be converted into plaintext using a Key, to be read by a normal user. Some popular Cipher algorithms are AES and DES. To set the cipher algorithm, first, get the list of various ciphers using the command:<\/p>\n<div class=\"codecolorer-container bash blackboard\" style=\"width:100%;\"><div class=\"bash codecolorer\">gpg2 <span class=\"re5\">--version<\/span><\/div><\/div>\n<p><img loading=\"lazy\" decoding=\"async\" width=\"878\" height=\"292\" class=\"wp-image-21214\" src=\"http:\/\/linuxways.net\/wp-content\/uploads\/2023\/09\/word-image-21212-2.png\" srcset=\"https:\/\/linuxways.net\/wp-content\/uploads\/2023\/09\/word-image-21212-2.png 878w, https:\/\/linuxways.net\/wp-content\/uploads\/2023\/09\/word-image-21212-2-300x100.png 300w, https:\/\/linuxways.net\/wp-content\/uploads\/2023\/09\/word-image-21212-2-768x255.png 768w\" sizes=\"auto, (max-width: 878px) 100vw, 878px\" \/><\/p>\n<p>Change the Algorithm and set AES Cipher Algorithm AES256 as default in the configuration file. Run the command below to change and edit the configuration file:<\/p>\n<div class=\"codecolorer-container bash blackboard\" style=\"width:100%;\"><div class=\"bash codecolorer\">gedit ~<span class=\"sy0\">\/<\/span>.gnupg<span class=\"sy0\">\/<\/span>gpg.conf<\/div><\/div>\n<p><img loading=\"lazy\" decoding=\"async\" width=\"877\" height=\"41\" class=\"wp-image-21215\" src=\"http:\/\/linuxways.net\/wp-content\/uploads\/2023\/09\/word-image-21212-3.png\" srcset=\"https:\/\/linuxways.net\/wp-content\/uploads\/2023\/09\/word-image-21212-3.png 877w, https:\/\/linuxways.net\/wp-content\/uploads\/2023\/09\/word-image-21212-3-300x14.png 300w, https:\/\/linuxways.net\/wp-content\/uploads\/2023\/09\/word-image-21212-3-768x36.png 768w\" sizes=\"auto, (max-width: 877px) 100vw, 877px\" \/><\/p>\n<p>Once you run the command it will open up the configuration file:<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" width=\"898\" height=\"208\" class=\"wp-image-21216\" src=\"http:\/\/linuxways.net\/wp-content\/uploads\/2023\/09\/word-image-21212-4.png\" srcset=\"https:\/\/linuxways.net\/wp-content\/uploads\/2023\/09\/word-image-21212-4.png 898w, https:\/\/linuxways.net\/wp-content\/uploads\/2023\/09\/word-image-21212-4-300x69.png 300w, https:\/\/linuxways.net\/wp-content\/uploads\/2023\/09\/word-image-21212-4-768x178.png 768w\" sizes=\"auto, (max-width: 898px) 100vw, 898px\" \/><\/p>\n<p>To change the default Cipher Algorithm, add the line below to the empty file:<\/p>\n<div class=\"codecolorer-container bash blackboard\" style=\"width:100%;\"><div class=\"bash codecolorer\">cipher-Algo AES256<\/div><\/div>\n<p>Save the file and then close it:<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" width=\"899\" height=\"93\" class=\"wp-image-21217\" src=\"http:\/\/linuxways.net\/wp-content\/uploads\/2023\/09\/word-image-21212-5.png\" srcset=\"https:\/\/linuxways.net\/wp-content\/uploads\/2023\/09\/word-image-21212-5.png 899w, https:\/\/linuxways.net\/wp-content\/uploads\/2023\/09\/word-image-21212-5-300x31.png 300w, https:\/\/linuxways.net\/wp-content\/uploads\/2023\/09\/word-image-21212-5-768x79.png 768w\" sizes=\"auto, (max-width: 899px) 100vw, 899px\" \/><\/p>\n<h3><strong>Step 3: Encrypting File<\/strong><\/h3>\n<p>To encrypt a file, we will use the asymmetric key encryption method. But before that make a new text file, or use any text file you want to encrypt using the command:<\/p>\n<div class=\"codecolorer-container bash blackboard\" style=\"width:100%;\"><div class=\"bash codecolorer\"><span class=\"kw2\">cat<\/span> <span class=\"sy0\">&gt;<\/span> encrypted.txt<\/div><\/div>\n<p>Add the content to the text file, save it, and then exit:<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" width=\"880\" height=\"42\" class=\"wp-image-21218\" src=\"http:\/\/linuxways.net\/wp-content\/uploads\/2023\/09\/word-image-21212-6.png\" srcset=\"https:\/\/linuxways.net\/wp-content\/uploads\/2023\/09\/word-image-21212-6.png 880w, https:\/\/linuxways.net\/wp-content\/uploads\/2023\/09\/word-image-21212-6-300x14.png 300w, https:\/\/linuxways.net\/wp-content\/uploads\/2023\/09\/word-image-21212-6-768x37.png 768w\" sizes=\"auto, (max-width: 880px) 100vw, 880px\" \/><\/p>\n<p><img loading=\"lazy\" decoding=\"async\" width=\"1212\" height=\"301\" class=\"wp-image-21219\" src=\"http:\/\/linuxways.net\/wp-content\/uploads\/2023\/09\/word-image-21212-7.png\" srcset=\"https:\/\/linuxways.net\/wp-content\/uploads\/2023\/09\/word-image-21212-7.png 1212w, https:\/\/linuxways.net\/wp-content\/uploads\/2023\/09\/word-image-21212-7-300x75.png 300w, https:\/\/linuxways.net\/wp-content\/uploads\/2023\/09\/word-image-21212-7-1024x254.png 1024w, https:\/\/linuxways.net\/wp-content\/uploads\/2023\/09\/word-image-21212-7-768x191.png 768w\" sizes=\"auto, (max-width: 1212px) 100vw, 1212px\" \/><\/p>\n<p>For Encryption, use the command below:<\/p>\n<div class=\"codecolorer-container bash blackboard\" style=\"width:100%;\"><div class=\"bash codecolorer\">gpg <span class=\"re5\">--symmetric<\/span> ~<span class=\"sy0\">\/<\/span>encrypted.txt<\/div><\/div>\n<p>Once the command is executed, it will ask for a passcode:<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" width=\"630\" height=\"502\" class=\"wp-image-21220\" src=\"http:\/\/linuxways.net\/wp-content\/uploads\/2023\/09\/word-image-21212-8.png\" srcset=\"https:\/\/linuxways.net\/wp-content\/uploads\/2023\/09\/word-image-21212-8.png 630w, https:\/\/linuxways.net\/wp-content\/uploads\/2023\/09\/word-image-21212-8-300x239.png 300w, https:\/\/linuxways.net\/wp-content\/uploads\/2023\/09\/word-image-21212-8-150x120.png 150w\" sizes=\"auto, (max-width: 630px) 100vw, 630px\" \/><\/p>\n<p>Enter the passphrase. You can also add your passphrase in the Password Manager. After adding the passphrase, you will notice another text file is created:<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" width=\"1124\" height=\"278\" class=\"wp-image-21221\" src=\"http:\/\/linuxways.net\/wp-content\/uploads\/2023\/09\/word-image-21212-9.png\" srcset=\"https:\/\/linuxways.net\/wp-content\/uploads\/2023\/09\/word-image-21212-9.png 1124w, https:\/\/linuxways.net\/wp-content\/uploads\/2023\/09\/word-image-21212-9-300x74.png 300w, https:\/\/linuxways.net\/wp-content\/uploads\/2023\/09\/word-image-21212-9-1024x253.png 1024w, https:\/\/linuxways.net\/wp-content\/uploads\/2023\/09\/word-image-21212-9-768x190.png 768w\" sizes=\"auto, (max-width: 1124px) 100vw, 1124px\" \/><\/p>\n<p>Once you open the file you will see that the file is encrypted:<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" width=\"898\" height=\"120\" class=\"wp-image-21222\" src=\"http:\/\/linuxways.net\/wp-content\/uploads\/2023\/09\/word-image-21212-10.png\" srcset=\"https:\/\/linuxways.net\/wp-content\/uploads\/2023\/09\/word-image-21212-10.png 898w, https:\/\/linuxways.net\/wp-content\/uploads\/2023\/09\/word-image-21212-10-300x40.png 300w, https:\/\/linuxways.net\/wp-content\/uploads\/2023\/09\/word-image-21212-10-768x103.png 768w\" sizes=\"auto, (max-width: 898px) 100vw, 898px\" \/><\/p>\n<h2><strong>How to Decrypt Files in Ubuntu?<\/strong><\/h2>\n<p>Files can also be decrypted in Ubuntu. Decrypt an encrypted file using the command:<\/p>\n<div class=\"codecolorer-container bash blackboard\" style=\"width:100%;\"><div class=\"bash codecolorer\">gpg <span class=\"re5\">-d<\/span> encrypted.txt.gpg<\/div><\/div>\n<p>Pressing \u201cEnter\u201d will ask for the paraphrase of the encrypted file.<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" width=\"415\" height=\"297\" class=\"wp-image-21223\" src=\"http:\/\/linuxways.net\/wp-content\/uploads\/2023\/09\/word-image-21212-11.png\" srcset=\"https:\/\/linuxways.net\/wp-content\/uploads\/2023\/09\/word-image-21212-11.png 415w, https:\/\/linuxways.net\/wp-content\/uploads\/2023\/09\/word-image-21212-11-300x215.png 300w\" sizes=\"auto, (max-width: 415px) 100vw, 415px\" \/><\/p>\n<p>Once you enter the passphrase, the decrypted message inside the file will be shown in the terminal:<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" width=\"732\" height=\"123\" class=\"wp-image-21224\" src=\"http:\/\/linuxways.net\/wp-content\/uploads\/2023\/09\/word-image-21212-12.png\" srcset=\"https:\/\/linuxways.net\/wp-content\/uploads\/2023\/09\/word-image-21212-12.png 732w, https:\/\/linuxways.net\/wp-content\/uploads\/2023\/09\/word-image-21212-12-300x50.png 300w\" sizes=\"auto, (max-width: 732px) 100vw, 732px\" \/><\/p>\n<h2><strong>How to Encrypt a Folder in Ubuntu 22.04?<\/strong><\/h2>\n<p>To encrypt a folder in Ubuntu follow the steps depicted below.<\/p>\n<h3><strong>Step 1: Install GPG<\/strong><\/h3>\n<p>For encrypting a folder, install the GPG Package. The GPG Package in Ubuntu is a tool used to provide digital Encryption and Decryption and can be used to manage Keys. Install GPG using the command:<\/p>\n<div class=\"codecolorer-container bash blackboard\" style=\"width:100%;\"><div class=\"bash codecolorer\"><span class=\"kw2\">sudo<\/span> apt <span class=\"kw2\">install<\/span> gpg<\/div><\/div>\n<p><img loading=\"lazy\" decoding=\"async\" width=\"905\" height=\"172\" class=\"wp-image-21225\" src=\"http:\/\/linuxways.net\/wp-content\/uploads\/2023\/09\/word-image-21212-13.png\" srcset=\"https:\/\/linuxways.net\/wp-content\/uploads\/2023\/09\/word-image-21212-13.png 905w, https:\/\/linuxways.net\/wp-content\/uploads\/2023\/09\/word-image-21212-13-300x57.png 300w, https:\/\/linuxways.net\/wp-content\/uploads\/2023\/09\/word-image-21212-13-768x146.png 768w\" sizes=\"auto, (max-width: 905px) 100vw, 905px\" \/><\/p>\n<h3><strong>Step 2: Compress the Folder<\/strong><\/h3>\n<p>To encrypt the folder, we have to compress it first using the command:<\/p>\n<div class=\"codecolorer-container bash blackboard\" style=\"width:100%;\"><div class=\"bash codecolorer\"><span class=\"kw2\">tar<\/span> <span class=\"re5\">-cvzf<\/span> EncryptedFolder1.tar.gz EncryptedFolder1<\/div><\/div>\n<p>This command will compress the \u201cEncryptedFolder1\u201d into \u201cEncryptedFolder1.tar.gz\u201d:<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" width=\"915\" height=\"59\" class=\"wp-image-21226\" src=\"http:\/\/linuxways.net\/wp-content\/uploads\/2023\/09\/word-image-21212-14.png\" srcset=\"https:\/\/linuxways.net\/wp-content\/uploads\/2023\/09\/word-image-21212-14.png 915w, https:\/\/linuxways.net\/wp-content\/uploads\/2023\/09\/word-image-21212-14-300x19.png 300w, https:\/\/linuxways.net\/wp-content\/uploads\/2023\/09\/word-image-21212-14-768x50.png 768w\" sizes=\"auto, (max-width: 915px) 100vw, 915px\" \/><\/p>\n<p>Executing the command will create the new folder:<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" width=\"1208\" height=\"278\" class=\"wp-image-21227\" src=\"http:\/\/linuxways.net\/wp-content\/uploads\/2023\/09\/word-image-21212-15.png\" srcset=\"https:\/\/linuxways.net\/wp-content\/uploads\/2023\/09\/word-image-21212-15.png 1208w, https:\/\/linuxways.net\/wp-content\/uploads\/2023\/09\/word-image-21212-15-300x69.png 300w, https:\/\/linuxways.net\/wp-content\/uploads\/2023\/09\/word-image-21212-15-1024x236.png 1024w, https:\/\/linuxways.net\/wp-content\/uploads\/2023\/09\/word-image-21212-15-768x177.png 768w\" sizes=\"auto, (max-width: 1208px) 100vw, 1208px\" \/><\/p>\n<h3><strong>Step 3: Encrypt the Folder<\/strong><\/h3>\n<p>To encrypt this folder now, use the command:<\/p>\n<div class=\"codecolorer-container bash blackboard\" style=\"width:100%;\"><div class=\"bash codecolorer\">gpg <span class=\"re5\">-c<\/span> EncryptedFolder1.tar.gz<\/div><\/div>\n<p>\u201c-c\u201d command will enable symmetric encryption:<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" width=\"905\" height=\"58\" class=\"wp-image-21228\" src=\"http:\/\/linuxways.net\/wp-content\/uploads\/2023\/09\/word-image-21212-16.png\" srcset=\"https:\/\/linuxways.net\/wp-content\/uploads\/2023\/09\/word-image-21212-16.png 905w, https:\/\/linuxways.net\/wp-content\/uploads\/2023\/09\/word-image-21212-16-300x19.png 300w, https:\/\/linuxways.net\/wp-content\/uploads\/2023\/09\/word-image-21212-16-768x49.png 768w\" sizes=\"auto, (max-width: 905px) 100vw, 905px\" \/><\/p>\n<p>Pressing \u201cEnter\u201d and executing the command will open a dialog box asking for a Passphrase. Enter the Passphrase and press \u201cOK\u201d:<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" width=\"416\" height=\"347\" class=\"wp-image-21229\" src=\"http:\/\/linuxways.net\/wp-content\/uploads\/2023\/09\/word-image-21212-17.png\" srcset=\"https:\/\/linuxways.net\/wp-content\/uploads\/2023\/09\/word-image-21212-17.png 416w, https:\/\/linuxways.net\/wp-content\/uploads\/2023\/09\/word-image-21212-17-300x250.png 300w\" sizes=\"auto, (max-width: 416px) 100vw, 416px\" \/><\/p>\n<p>After entering the passphrase you can see the folder is created in the directory:<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" width=\"1026\" height=\"241\" class=\"wp-image-21230\" src=\"http:\/\/linuxways.net\/wp-content\/uploads\/2023\/09\/word-image-21212-18.png\" srcset=\"https:\/\/linuxways.net\/wp-content\/uploads\/2023\/09\/word-image-21212-18.png 1026w, https:\/\/linuxways.net\/wp-content\/uploads\/2023\/09\/word-image-21212-18-300x70.png 300w, https:\/\/linuxways.net\/wp-content\/uploads\/2023\/09\/word-image-21212-18-1024x241.png 1024w, https:\/\/linuxways.net\/wp-content\/uploads\/2023\/09\/word-image-21212-18-768x180.png 768w, https:\/\/linuxways.net\/wp-content\/uploads\/2023\/09\/word-image-21212-18-1020x241.png 1020w\" sizes=\"auto, (max-width: 1026px) 100vw, 1026px\" \/><\/p>\n<p>When you open the folder you can see the content inside the folder is Encrypted:<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" width=\"906\" height=\"207\" class=\"wp-image-21231\" src=\"http:\/\/linuxways.net\/wp-content\/uploads\/2023\/09\/word-image-21212-19.png\" srcset=\"https:\/\/linuxways.net\/wp-content\/uploads\/2023\/09\/word-image-21212-19.png 906w, https:\/\/linuxways.net\/wp-content\/uploads\/2023\/09\/word-image-21212-19-300x69.png 300w, https:\/\/linuxways.net\/wp-content\/uploads\/2023\/09\/word-image-21212-19-768x175.png 768w\" sizes=\"auto, (max-width: 906px) 100vw, 906px\" \/><\/p>\n<h2><strong>How to Decrypt a Folder in Ubuntu 22.04?<\/strong><\/h2>\n<p>The \u201cgpg\u201d command can also be used to decrypt a folder that is already encrypted. In our case, will use the \u201cgpg\u201d command to decrypt the following folder:<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" width=\"1562\" height=\"177\" class=\"wp-image-21232\" src=\"http:\/\/linuxways.net\/wp-content\/uploads\/2023\/09\/word-image-21212-20.png\" srcset=\"https:\/\/linuxways.net\/wp-content\/uploads\/2023\/09\/word-image-21212-20.png 1562w, https:\/\/linuxways.net\/wp-content\/uploads\/2023\/09\/word-image-21212-20-300x34.png 300w, https:\/\/linuxways.net\/wp-content\/uploads\/2023\/09\/word-image-21212-20-1024x116.png 1024w, https:\/\/linuxways.net\/wp-content\/uploads\/2023\/09\/word-image-21212-20-768x87.png 768w, https:\/\/linuxways.net\/wp-content\/uploads\/2023\/09\/word-image-21212-20-1536x174.png 1536w\" sizes=\"auto, (max-width: 1562px) 100vw, 1562px\" \/><\/p>\n<p>The \u201cgpg\u201d command will make a new <strong>.tar <\/strong>folder when it decrypts the encrypted folder and can be used as follows:<\/p>\n<div class=\"codecolorer-container bash blackboard\" style=\"width:100%;\"><div class=\"bash codecolorer\">gpg <span class=\"re5\">--decrypt<\/span> <span class=\"st_h\">'encrypted-folder.tar.gz.gpg'<\/span> <span class=\"sy0\">&gt;<\/span> <span class=\"st_h\">'decrypted-folder.tar'<\/span><\/div><\/div>\n<p>In our case:<\/p>\n<div class=\"codecolorer-container bash blackboard\" style=\"width:100%;\"><div class=\"bash codecolorer\">gpg <span class=\"re5\">--decrypt<\/span> EncryptedFolder.tar.gz.gpg <span class=\"sy0\">&gt;<\/span> DecryptedFolder.tar<\/div><\/div>\n<p>This will Decrypt the Encrypted Folder by making a new <strong>.tar <\/strong>Folder \u201cDecryptedFolder\u201d:<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" width=\"1180\" height=\"296\" class=\"wp-image-21233\" src=\"http:\/\/linuxways.net\/wp-content\/uploads\/2023\/09\/word-image-21212-21.png\" srcset=\"https:\/\/linuxways.net\/wp-content\/uploads\/2023\/09\/word-image-21212-21.png 1180w, https:\/\/linuxways.net\/wp-content\/uploads\/2023\/09\/word-image-21212-21-300x75.png 300w, https:\/\/linuxways.net\/wp-content\/uploads\/2023\/09\/word-image-21212-21-1024x257.png 1024w, https:\/\/linuxways.net\/wp-content\/uploads\/2023\/09\/word-image-21212-21-768x193.png 768w\" sizes=\"auto, (max-width: 1180px) 100vw, 1180px\" \/><\/p>\n<p>You can now extract this \u201c<strong>.tar<\/strong>\u201d folder which will make a new Directory with the same name. Extract the file by right-clicking on the file:<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" width=\"784\" height=\"539\" class=\"wp-image-21234\" src=\"http:\/\/linuxways.net\/wp-content\/uploads\/2023\/09\/word-image-21212-22.png\" srcset=\"https:\/\/linuxways.net\/wp-content\/uploads\/2023\/09\/word-image-21212-22.png 784w, https:\/\/linuxways.net\/wp-content\/uploads\/2023\/09\/word-image-21212-22-300x206.png 300w, https:\/\/linuxways.net\/wp-content\/uploads\/2023\/09\/word-image-21212-22-768x528.png 768w\" sizes=\"auto, (max-width: 784px) 100vw, 784px\" \/><\/p>\n<p>The \u201c.tar\u201d folder will make a new Folder in the same path when extracted:<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" width=\"1401\" height=\"256\" class=\"wp-image-21235\" src=\"http:\/\/linuxways.net\/wp-content\/uploads\/2023\/09\/word-image-21212-23.png\" srcset=\"https:\/\/linuxways.net\/wp-content\/uploads\/2023\/09\/word-image-21212-23.png 1401w, https:\/\/linuxways.net\/wp-content\/uploads\/2023\/09\/word-image-21212-23-300x55.png 300w, https:\/\/linuxways.net\/wp-content\/uploads\/2023\/09\/word-image-21212-23-1024x187.png 1024w, https:\/\/linuxways.net\/wp-content\/uploads\/2023\/09\/word-image-21212-23-768x140.png 768w\" sizes=\"auto, (max-width: 1401px) 100vw, 1401px\" \/><\/p>\n<p>You can now access the files inside the Decrypted Folder.<\/p>\n<h2><strong>Conclusion<\/strong><\/h2>\n<p>To <strong>encrypt <\/strong>a file in Ubuntu 22.04, first, install GnuPG, set the cipher algorithm, and then encrypt the file using the \u201cgpg &#8211;symmetric ~\/filename\u201d command. Encryption is a part of security methods. Encryption can further enhance the privacy and security of our files and folders. Most of the data that is sensitive should be kept encrypted. This article guides you on how you can use the encryption method to encrypt your files and folders.<\/p>","protected":false},"excerpt":{"rendered":"<p>To encrypt a file in Ubuntu 22.04, first, install GnuPG, set the cipher algorithm, and then encrypt the file using the \u201cgpg &#8211;symmetric ~\/filename\u201d command. <\/p>","protected":false},"author":110,"featured_media":21236,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[2],"tags":[],"class_list":["post-21212","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-ubuntu"],"_links":{"self":[{"href":"https:\/\/linuxways.net\/de\/wp-json\/wp\/v2\/posts\/21212","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/linuxways.net\/de\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/linuxways.net\/de\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/linuxways.net\/de\/wp-json\/wp\/v2\/users\/110"}],"replies":[{"embeddable":true,"href":"https:\/\/linuxways.net\/de\/wp-json\/wp\/v2\/comments?post=21212"}],"version-history":[{"count":0,"href":"https:\/\/linuxways.net\/de\/wp-json\/wp\/v2\/posts\/21212\/revisions"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/linuxways.net\/de\/wp-json\/wp\/v2\/media\/21236"}],"wp:attachment":[{"href":"https:\/\/linuxways.net\/de\/wp-json\/wp\/v2\/media?parent=21212"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/linuxways.net\/de\/wp-json\/wp\/v2\/categories?post=21212"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/linuxways.net\/de\/wp-json\/wp\/v2\/tags?post=21212"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}