<?xml version="1.0" encoding="UTF-8"?><rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	>

<channel>
	<title>linux encrypt Archives - Linux Windows and android Tutorials</title>
	<atom:link href="https://www.osradar.com/tag/linux-encrypt/feed/" rel="self" type="application/rss+xml" />
	<link>https://www.osradar.com</link>
	<description>tutorials and news and Seurity</description>
	<lastBuildDate>Mon, 19 Mar 2018 14:45:42 +0000</lastBuildDate>
	<language>en-US</language>
	<sy:updatePeriod>
	hourly	</sy:updatePeriod>
	<sy:updateFrequency>
	1	</sy:updateFrequency>
	<generator>https://wordpress.org/?v=5.8.12</generator>
	<item>
		<title>How To Encrypt Files On Linux</title>
		<link>https://www.osradar.com/how-to-encrypt-files-on-linux/</link>
					<comments>https://www.osradar.com/how-to-encrypt-files-on-linux/#respond</comments>
		
		<dc:creator><![CDATA[Mel]]></dc:creator>
		<pubDate>Mon, 19 Mar 2018 14:23:01 +0000</pubDate>
				<category><![CDATA[Linux]]></category>
		<category><![CDATA[Tutorials]]></category>
		<category><![CDATA[encrypt]]></category>
		<category><![CDATA[gpg]]></category>
		<category><![CDATA[gpg2]]></category>
		<category><![CDATA[linux encrypt]]></category>
		<category><![CDATA[mcrypt]]></category>
		<guid isPermaLink="false">https://www.osradar.com/?p=2201</guid>

					<description><![CDATA[<p>Encryption is a method that makes a data unreadable to others and ensures that only the person meant to read the data reads it. It’s very powerful and useful method that’s used everywhere on the internet. In other words, security is now encryption. If you’re on Linux, you have the upper hand if you want [&#8230;]</p>
<p>The post <a rel="nofollow" href="https://www.osradar.com/how-to-encrypt-files-on-linux/">How To Encrypt Files On Linux</a> appeared first on <a rel="nofollow" href="https://www.osradar.com">Linux  Windows and android  Tutorials</a>.</p>
]]></description>
										<content:encoded><![CDATA[<p>Encryption is a method that makes a data unreadable to others and ensures that only the person meant to read the data reads it. It’s very powerful and useful method that’s used everywhere on the internet. In other words, security is now encryption. If you’re on Linux, you have the upper hand if you want to encrypt your files and keep them safe.</p>
<p>In this age of cyber warfare, no data is safe. For staying secured, I recommend encrypting the important and sensitive documents so that others can’t read them. Here’re a few methods that you can use to encrypt your files on any Linux system.</p>
<ul>
<li>
<h4>GPG (GnuPG)</h4>
</li>
</ul>
<p>It’s one of the best and easiest tools to use for encrypting and decrypting your files. It’s a CLI-based tool, but don’t fear; the commands are really simple to understand.</p>
<ul>
<li>Open a terminal by pressing CTRL + Alt + T.</li>
<li>Go to the file’s directory that you want to encrypt. For example, I’m using “test_doc.txt” file on my desktop. So, I have to run this command:</li>
</ul>
<pre class="lang:default decode:true">cd ~/Desktop</pre>
<ul>
<li>Now, encrypt the file using the following command:</li>
</ul>
<pre class="lang:default decode:true">gpg2 -c test_doc.txt</pre>
<p><img loading="lazy" class="size-full wp-image-2202 aligncenter" src="https://www.osradar.com/wp-content/uploads/2018/03/gpg2-file-encryption-1.png" alt="" width="1064" height="660" srcset="https://www.osradar.com/wp-content/uploads/2018/03/gpg2-file-encryption-1.png 1064w, https://www.osradar.com/wp-content/uploads/2018/03/gpg2-file-encryption-1-300x186.png 300w, https://www.osradar.com/wp-content/uploads/2018/03/gpg2-file-encryption-1-768x476.png 768w, https://www.osradar.com/wp-content/uploads/2018/03/gpg2-file-encryption-1-1024x635.png 1024w, https://www.osradar.com/wp-content/uploads/2018/03/gpg2-file-encryption-1-356x220.png 356w, https://www.osradar.com/wp-content/uploads/2018/03/gpg2-file-encryption-1-696x432.png 696w, https://www.osradar.com/wp-content/uploads/2018/03/gpg2-file-encryption-1-677x420.png 677w" sizes="(max-width: 1064px) 100vw, 1064px" /></p>
<p><img loading="lazy" class="size-full wp-image-2203 aligncenter" src="https://www.osradar.com/wp-content/uploads/2018/03/gpg2-file-encryption-2.png" alt="" width="491" height="459" srcset="https://www.osradar.com/wp-content/uploads/2018/03/gpg2-file-encryption-2.png 491w, https://www.osradar.com/wp-content/uploads/2018/03/gpg2-file-encryption-2-300x280.png 300w, https://www.osradar.com/wp-content/uploads/2018/03/gpg2-file-encryption-2-449x420.png 449w" sizes="(max-width: 491px) 100vw, 491px" /></p>
<p>Note that there are two versions of GPG (gpg and gpg2). Gpg2 is recommended as it’s better and improved. You’ll be asked to provide a password</p>
<p>If you want to decrypt the file, use the following command:</p>
<pre class="lang:default decode:true ">gpg2 test_doc.txt.gpg</pre>
<p><img loading="lazy" class="size-full wp-image-2204 aligncenter" src="https://www.osradar.com/wp-content/uploads/2018/03/gpg2-file-encryption-3.png" alt="" width="1056" height="409" srcset="https://www.osradar.com/wp-content/uploads/2018/03/gpg2-file-encryption-3.png 1056w, https://www.osradar.com/wp-content/uploads/2018/03/gpg2-file-encryption-3-300x116.png 300w, https://www.osradar.com/wp-content/uploads/2018/03/gpg2-file-encryption-3-768x297.png 768w, https://www.osradar.com/wp-content/uploads/2018/03/gpg2-file-encryption-3-1024x397.png 1024w, https://www.osradar.com/wp-content/uploads/2018/03/gpg2-file-encryption-3-696x270.png 696w" sizes="(max-width: 1056px) 100vw, 1056px" /></p>
<p>Voila! Your file is encrypted using your own password. Feel free to delete the original file, as it will not be needed anymore. The file is already inside the .GPG archive.</p>
<ul>
<li>
<h4>mCrypt</h4>
</li>
</ul>
<p>This is another CLI-based tool for Linux. It doesn’t come by default with Linux distros, so you have to install it on your own. Depending on your Linux distro, install mCrypt using the following method:</p>
<pre class="lang:default decode:true">sudo apt install mcrypt                      [Ubuntu + Ubuntu-based distros]
sudo apt-get install mcrypt                  [Debian]
sudo dnf install mcrypt                      [Fedora]
sudo zypper install mcrypt                   [OpenSUSE]</pre>
<p>Now, the working method. It’s really simple and fun. It also supports multiple files at the same time.</p>
<ul>
<li>Go to the directory where your file is. Here, I’m using the same file, the same directory as before (“test_doc.txt” on Desktop).</li>
<li>Run this command:</li>
</ul>
<pre class="lang:default decode:true">mcrypt text_doc.txt</pre>
<p><img loading="lazy" class="size-full wp-image-2205 aligncenter" src="https://www.osradar.com/wp-content/uploads/2018/03/mcrypt-1.png" alt="" width="1056" height="376" srcset="https://www.osradar.com/wp-content/uploads/2018/03/mcrypt-1.png 1056w, https://www.osradar.com/wp-content/uploads/2018/03/mcrypt-1-300x107.png 300w, https://www.osradar.com/wp-content/uploads/2018/03/mcrypt-1-768x273.png 768w, https://www.osradar.com/wp-content/uploads/2018/03/mcrypt-1-1024x365.png 1024w, https://www.osradar.com/wp-content/uploads/2018/03/mcrypt-1-696x248.png 696w" sizes="(max-width: 1056px) 100vw, 1056px" /></p>
<p><img loading="lazy" class="size-full wp-image-2206 aligncenter" src="https://www.osradar.com/wp-content/uploads/2018/03/mcrypt-2.png" alt="" width="338" height="332" srcset="https://www.osradar.com/wp-content/uploads/2018/03/mcrypt-2.png 338w, https://www.osradar.com/wp-content/uploads/2018/03/mcrypt-2-300x295.png 300w" sizes="(max-width: 338px) 100vw, 338px" /></p>
<p>If you want to add multiple files, follow this structure:</p>
<pre class="lang:default decode:true">mcrypt file1 file2 file3</pre>
<p>It’s time to decrypt the files.</p>
<ul>
<li>Go to the directory where the encrypted files are.</li>
<li>Run the following command:</li>
</ul>
<pre class="lang:default decode:true ">mcrypt -d test_doc.txt.nc</pre>
<p><img loading="lazy" class="size-full wp-image-2207 aligncenter" src="https://www.osradar.com/wp-content/uploads/2018/03/mcrypt-3.png" alt="" width="1055" height="299" srcset="https://www.osradar.com/wp-content/uploads/2018/03/mcrypt-3.png 1055w, https://www.osradar.com/wp-content/uploads/2018/03/mcrypt-3-300x85.png 300w, https://www.osradar.com/wp-content/uploads/2018/03/mcrypt-3-768x218.png 768w, https://www.osradar.com/wp-content/uploads/2018/03/mcrypt-3-1024x290.png 1024w, https://www.osradar.com/wp-content/uploads/2018/03/mcrypt-3-696x197.png 696w" sizes="(max-width: 1055px) 100vw, 1055px" /></p>
<p>If you’re decrypting multiple .NC files, use this structure:</p>
<pre class="lang:default decode:true">mcrypt -d file1.nc file2.nc file3.nc</pre>
<p>Your files are back!</p>
<ul>
<li>
<h4>File Manager</h4>
</li>
</ul>
<p>Every file manager that comes with every Linux distro contains a good &amp; functioning app. Using the file manager, you can create a password-protected ZIP file that contains all the files.</p>
<ul>
<li>Select the files you want to encrypt.</li>
<li>Right-click and select “Compress” (or equivalent option).</li>
<li>Enter a password for the ZIP file.</li>
</ul>
<p><img loading="lazy" class="size-full wp-image-2208 aligncenter" src="https://www.osradar.com/wp-content/uploads/2018/03/file-manager-encrypt.png" alt="" width="711" height="397" srcset="https://www.osradar.com/wp-content/uploads/2018/03/file-manager-encrypt.png 711w, https://www.osradar.com/wp-content/uploads/2018/03/file-manager-encrypt-300x168.png 300w, https://www.osradar.com/wp-content/uploads/2018/03/file-manager-encrypt-696x389.png 696w" sizes="(max-width: 711px) 100vw, 711px" /></p>
<ul>
<li>Click “Create” (or equivalent).</li>
</ul>
<p>Note that depending on your distro, the options and figure will vary, but the basic will be the same.</p>
<h3>Caution</h3>
<p>Make sure that you don’t forget the password! Never, ever! If you forget the password, there’s no way of recovering it (in your lifetime).</p>
<p>So, have some fun with your privacy! But Firefox seriously messed up privacy with their poor system design. Learn about the <a href="https://www.osradar.com/firefox-users-master-password-at-risk/">Firefox “Master Password” flaw that puts lots of users at stake</a>.</p>
<p>The post <a rel="nofollow" href="https://www.osradar.com/how-to-encrypt-files-on-linux/">How To Encrypt Files On Linux</a> appeared first on <a rel="nofollow" href="https://www.osradar.com">Linux  Windows and android  Tutorials</a>.</p>
]]></content:encoded>
					
					<wfw:commentRss>https://www.osradar.com/how-to-encrypt-files-on-linux/feed/</wfw:commentRss>
			<slash:comments>0</slash:comments>
		
		
			</item>
	</channel>
</rss>
