<?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>encrypt &#8211; lifeLinux: Linux Tips, Hacks, Tutorials, Ebooks</title>
	<atom:link href="http://lifelinux.com/tag/encrypt/feed/" rel="self" type="application/rss+xml" />
	<link>http://lifelinux.com</link>
	<description>All About Linux !</description>
	<lastBuildDate>Fri, 27 May 2011 01:43:19 +0000</lastBuildDate>
	<language>en-US</language>
	<sy:updatePeriod>
	hourly	</sy:updatePeriod>
	<sy:updateFrequency>
	1	</sy:updateFrequency>
	<generator>https://wordpress.org/?v=5.5.9</generator>
	<item>
		<title>Linux Password Protect Files</title>
		<link>http://lifelinux.com/linux-password-protect-files/</link>
					<comments>http://lifelinux.com/linux-password-protect-files/#respond</comments>
		
		<dc:creator><![CDATA[lifeLinux]]></dc:creator>
		<pubDate>Fri, 27 May 2011 01:22:04 +0000</pubDate>
				<category><![CDATA[File System]]></category>
		<category><![CDATA[Security]]></category>
		<category><![CDATA[Sys Admin]]></category>
		<category><![CDATA[access control list]]></category>
		<category><![CDATA[command line tool]]></category>
		<category><![CDATA[cryptographic software]]></category>
		<category><![CDATA[cryptography toolkit]]></category>
		<category><![CDATA[decrypt files]]></category>
		<category><![CDATA[digital signatures]]></category>
		<category><![CDATA[encrypt]]></category>
		<category><![CDATA[encryption]]></category>
		<category><![CDATA[file permissions]]></category>
		<category><![CDATA[gnu privacy guard]]></category>
		<category><![CDATA[gnupg]]></category>
		<category><![CDATA[gpg]]></category>
		<category><![CDATA[gpg command]]></category>
		<category><![CDATA[input file]]></category>
		<category><![CDATA[key management]]></category>
		<category><![CDATA[Linux]]></category>
		<category><![CDATA[mcrypt command]]></category>
		<category><![CDATA[network protocols]]></category>
		<category><![CDATA[passphrase]]></category>
		<category><![CDATA[password protect files]]></category>
		<category><![CDATA[secure communication]]></category>
		<category><![CDATA[secure sockets layer]]></category>
		<category><![CDATA[transport layer security]]></category>
		<category><![CDATA[UNIX]]></category>
		<category><![CDATA[unix computer security]]></category>
		<category><![CDATA[unix crypt]]></category>
		<guid isPermaLink="false">http://www.lifelinux.com/?p=811</guid>

					<description><![CDATA[<p>If you store private information on your Linux system and you want to prevent other people who use the system from viewing your private files, you need to password protect these files. Solution is to use following commands to encrypt or decrypt files with a password. gpg command GnuPG is the GNU project&#8217;s complete and [&#8230;]</p>
<p>The post <a rel="nofollow" href="http://lifelinux.com/linux-password-protect-files/">Linux Password Protect Files</a> appeared first on <a rel="nofollow" href="http://lifelinux.com">lifeLinux: Linux Tips, Hacks, Tutorials, Ebooks</a>.</p>
]]></description>
										<content:encoded><![CDATA[<p></p><p>If you store private information on your Linux system and you want to prevent other people who use the system from viewing your private files, you need to password protect these files. Solution is to use following commands to encrypt or decrypt files with a password.<span id="more-811"></span></p>
<h3>gpg command</h3>
<p><strong>GnuPG</strong> is the GNU project&#8217;s complete and free implementation of the OpenPGP standard as defined by RFC4880. GnuPG allows to encrypt and sign your data and communication, features a versatile key management system as well as access modules for all kinds of public key directories. GnuPG, also known as GPG, is a command line tool with features for easy integration with other applications.</p>
<p>To encrypt a file, use command gpg as follows:</p>
<pre>$ gpg -c filename</pre>
<p>Example, to encrypt private.txt file, type the command</p>
<pre>$ gpg -c private.txt</pre>
<p>Output</p>
<pre>Enter passphrase:
Repeat passphrase:</pre>
<p><strong>Where,</strong><br />
-c : Encrypt with symmetric cipher.</p>
<p>To decrypt file use gpg command</p>
<pre>$ gpg private.txt.gpg</pre>
<p>Output:</p>
<pre>gpg private.txt.gpg
gpg: CAST5 encrypted data
Enter passphrase:</pre>
<h3>mcrypt command</h3>
<p><strong>Mcrypt</strong> is a simple crypting program, a replacement for the old unix crypt. When encrypting or decrypting a file, a new file is created with the extension .nc and mode 0600. The new file keeps the modification date of the original. The original file may be deleted by specifying the -u parameter.</p>
<p>Examples, to encrypt data.txt file, type the following command</p>
<pre>$ mcrypt data.txt</pre>
<p>Output:</p>
<pre>Enter the passphrase (maximum of 512 characters)
Please use a combination of upper and lower case letters and numbers.
Enter passphrase:
Enter passphrase:</pre>
<p><strong>Note</strong> that a new file is created with the extension .nc.</p>
<p>To decrypt the data.txt.nc file, enter</p>
<pre>$ mcrypt -d data.txt.nc</pre>
<p>Output:</p>
<pre>Enter passphrase:
File data.txt.nc was decrypted.</pre>
<g:plusone href="http://lifelinux.com/linux-password-protect-files/" size="standard"  annotation="none"   ></g:plusone><p>The post <a rel="nofollow" href="http://lifelinux.com/linux-password-protect-files/">Linux Password Protect Files</a> appeared first on <a rel="nofollow" href="http://lifelinux.com">lifeLinux: Linux Tips, Hacks, Tutorials, Ebooks</a>.</p>
]]></content:encoded>
					
					<wfw:commentRss>http://lifelinux.com/linux-password-protect-files/feed/</wfw:commentRss>
			<slash:comments>0</slash:comments>
		
		
			</item>
	</channel>
</rss>
