Android Century
  • Home
  • Android Zone
    • Android Apps
    • Android Games
    • Apps APk Files
    • Games Apk Files
    • Apps Hack Tricks
  • Reviews
  • Fantasy Zone
    • Entertainment
    • Quotes and Status
    • Life Style
    • Home Made Tips
    • Hair Care
    • Skin Care
    • Fantasy Tips
  • Tricks
    • Free Recharge
    • Free Internet
    • shopping Cashback
    • Recharge Cashback
  • Tech
  • Mobiles
  • Gadgets
  • News
  • How To's
  • Software
Breaking
Loading...

Featured post

How to Take Great Photos With Apple's iPhone X

Recent Posts

Labels

  • Android Apk Files
  • Android Apps
  • Android Games
  • Apps Apk Files
  • Entertainment
  • Fantasy Tips
  • Gadgets
  • Hair Care
  • HomeMade Tips
  • How To's
  • News
  • Quotes
  • Quotes & Status
  • Recharge Cashback
  • Recharge Promo Codes
  • Shopping Cashback
  • Technology
  • skin care
Home / How To's / 3 encryption tools for Linux that will keep your data safe

3 encryption tools for Linux that will keep your data safe

Latest Govt. Jobs 00:02:00 How To's Edit
security lock code

Encryption is an interesting thing. The first time I saw encryption in action was on a friend’s Gentoo Linux laptop that could only boot if the USB key with the boot partition and decryption key was inserted. Cool stuff, from a geek point-of-view.
Fast forward, and revelations from Edward Snowden and ongoing concerns about government snooping are slowly bringing encryption and privacy tools into the mainstream. Even if you’re not worried about a Big Brother or some shady spy-versus-spy scenario, encryption can still protect your identity and privacy if your laptop is stolen. Think of all the things we keep on laptops: contact information, financial information, and client and company information. All of that data is worthy of protection. Luckily, Linux users have access to several tools for the affordable price of free.
There are three main methods for protecting the data on your laptop, each with its own strengths and weaknesses.
[ Further reading: 4 Linux projects for newbies and intermediate users ]

1. OpenPGP and email encryption

Using Pretty Good Privacy (PGP) encryption to protect email isn’t anything new. While the original PGP implementation is proprietary, the OpenPGP specification was written in 1997. OpenPGP makes use of public-key cryptography, which means every keypair comes with a private and public key. You use a private key (that you keep secret) to unlock and sign files, while a public key (that you give away to people) can be used to encrypt files to you and verify files you’ve signed.
In the context of email, your plaintext email is encrypted with a public key into either a file or ASCII cycphertext (which looks random to people and machines) that can only be read by someone with the matching private key. In basic terms, this means that the email is encrypted before it leaves your PC, so no amount of snooping on the email server you’re using will allow someone to see the contents of the file. This is known as end-to-end encryption. (Metadata, like the subject line, recipients, and time sent are all left in plaintext, however.)
The most widely used implementation of this standard (as far as Linux users are concerned) is GNU Privacy Guard (or GnuPG or GPG).
gpg —gen-key
To create a GnuPG keypair using the command line, use gpg —gen-key.
Most modern Linux distributions come with GnuPG preinstalled. If it isn’t, it can be easily found using your distribution’s package manager, usually with the name gpg.
While you can use GPG on the command line, it’s often easier to create and manage keys using a GUI program. The GnuPG team provides the GNU Privacy Assistant (GPA) GUI to create and manage keys. If you prefer a KDE-compatible interface, you can install Kleopatra, while GNOME 3 users might prefer GNOME’s Seahorse. GnuPG is also available for Windows using GPG4Win, which provides Windows versions of both Kleopatra and GPA.
Before you can encrypt files or email with OpenPGP, you’ll need to create your first keypair. When you create your key you’ll need to provide (at minimum) a name and email address to help identify the key. You’ll also need to provide a key strength. While a 2,048-bit key is considered pretty safe, a 4,096-bit key will provide more protection, though at the expense of slightly longer times for key creation, encryption, and decryption.
Creating a PGP key with Seahorse
You can use a GUI to create your keys if you’re not confident about the command line. 
How you set up GnuPG for use with your email will vary depending on the client you use. If you use Mozilla’s Thunderbird, you’ll need to install the Enigmail extension. Both KDE’s KMail and GNOME’s Evolution support OpenPGP natively. KDE’s online documentation provides a manual for GPG integration with KMail, and Fedora has a great how-to for Evolution.  There are a few browser plugins like Mailvelope (which offers add-ons for both Chromium/Chrome and Firefox) that work pretty well for those who prefer webmail.
GnuPG provides a great in-depth online manual on how OpenPGP works and how to use the GnuPG tools. If you’re using Kleopatra, many of the steps outlined in PCWorld’s tutorial on GPG4Win will apply to Linux as well.

2. Encrypted containers

Not everything you want to keep secret or secure is a text file or email. To secure groups of files, some people prefer to use encrypted containers.
Containers are handy because they’re portable. In its simplest form, a container is a lot like a zip file that’s encrypted. That file can be in your home folder, copied to a USB drive, stored in the cloud, or put anywhere else that’s convenient. 
tomb dig -s 100
Setting up a container and key using Tomb is really easy, if you’re comfortable with the command line.
The most basic container can be a zip or gzipped tar file (.tar.gz) that you encrypt using OpenPGP. The downside to such a simple container is that you have to delete the plaintext (decrypted) file once you’re finished with it. If you have to modify or add files in the archive, you basically have to delete the old file and encrypt a new one.
A simpler and more secure way to handle containers is to use VeraCrypt (the successor to TrueCrypt). VeraCrypt is capable of creating encrypted containers of fixed size, which can help obscure the size of the files in the container. There’s a good tutorial on VeraCrypt’s website that explains how to create such a container. The good thing about using a VeraCrypt container is that you can access its contents using VeraCrypt on both Windows and Linux.
Finally, there’s a tool called Tomb. Tomb is little more than a script, but it makes creating and managing containers and keys for dm-crypt really easy. The dm-crypt utility is standard to Linux and is its built-in disk encryption engine (I’ll get to more on that in a bit), but it can also be used to create containers. Tomb’s usage is quite simple, and the project website offers useful guidance.

3. Whole-disk encryption

Sometimes, it can just be easier to encrypt everything on your system. That way, there’s little need to worry (for the most part) about what files are stored where. Everything is protected, so long as your PC is off.
Windows users may recall that VeraCrypt (or TrueCrypt) can encrypt drive partitions and entire disks. This can be done on Linux as well, but most users will likely prefer to use Linux’s built-in disk encryption tool, dm-crypt.
lsblk
A partition tree viewed with lsblk. Note that the encrypted partition /dev/sda3 is host to the LVM partitions that are mounted to the root directory (/) and swap, while the boot partition (/dev/sda2) is unencrypted.
By itself, dm-crypt and its tool cryptsetup are very basic and can be a little cumbersome, since dm-crypt can only use a single key. Most people prefer to use Linux Unified Key Setup (LUKS) to manage keys for an encrypted device, which allows up to eight keys to be used with dm-crypt, such that any one key or passphrase supplied can unlock the drive. When using dm-crypt to encrypt a drive, a passphrase must be entered at boot time to unlock it.
I should also note that LUKS and dm-crypt are the underlying programs that Tomb uses to work its magic.
Setting up dm-crypt, LUKS, and optionally LVM (logical partitions) can be a messy task for a newbie. For users who feel up to the task, the Arch Linux Wiki has a great guide on using LUKS and dm-crypt to encrypt a system. For those less inclined to get down and dirty with terminal commands, there’s an option to use LVM and LUKS drive encryption when you install Ubuntu or Debian.
There are a couple pitfalls when using whole-disk encryption. First off the boot partition (/boot) is usually left unencrypted, since the system has to boot to an initial ramdisk to get itself going. The system can’t do that if the ramdisk and boot partition are unreadable. (You actually can encrypt the boot partition, but it takes extra steps and is a bit more tricky.) The consequence of this is that it if someone got their hands on your PC, they could theoretically install a modified kernel that could harvest your passphrase. It’s an unlikely scenario, but technically possible. This can be circumvented by placing your boot partition on a USB thumb drive that you keep separate from the system.
The minute you turn on your PC and unlock the disk, files on the system can be read as though it weren’t encrypted at all. If your laptop is stolen and you don’t have a screen lock enabled, someone could simply compromise your system as long as it has power (which is very similar to device encryption on an Android phone). 
Finally, SSDs present special problems because of the way they allocate  and clear (or don’t clear) cells. You can still use an SSD with disk encryption, but extra steps should be taken when preparing the drive.
Even with a few pitfalls, I consider using disk encryption on laptops to be a very good practice. While encrypting desktops is less common because they are stolen less frequently, everyone has seen someone leave a laptop at a coffee shop or on a chair on campus. I rest a little easier knowing that if my laptop is ever lifted, I’m only losing a device, not my privacy along with it.
Share on Facebook Share on Twitter Share on Google Plus

RELATED POSTS


How to Get Free Internet on Idea An...

How to Use DroidVPN App For Free In...

How to HACK Google Play Music App
3 encryption tools for Linux that will keep your data safe 3 encryption tools for Linux that will keep your data safe Reviewed by Latest Govt. Jobs on 00:02:00 Rating: 5

0 comments:

Post a Comment

Newer Post Older Post Home
Subscribe to: Post Comments ( Atom )

Search This Blog

TEST BOOK FOR GOVT ENTRANCE TEST

TEST BOOK FOR GOVT ENTRANCE TEST
Find All Latest book for preparation of SSC,RAILWAYBANK PO,RBI,BANK CLERK,GATE ME,GATE CE are available here in less prices, to check out the books click here

Translate

  • Popular Post
  • Random posts
  • Category

Popular Posts

  • Teen Patti Offer 2018: Refer and Earn Flipkart Vouchers Free
    Teen Patti Offer 2018: Refer and Earn Flipkart Vouchers Free
    Teen Patti Refer & Earn Offer:  Hey Guys! Today I make an article about Teen Patti Referral ...
  • KingRoot 4.8.1 (136) APK Latest Version Download
    Download KingRoot Latest Version 4.8.1 In Tools by Developer KingRoot Studio ( 4.x / 5  average ...
  • 11 things you should understand approximately iOS 11
    Apple introduced the following version of its running system for the iPhone and iPad, iOS eleven ...
  • How to Upload Your Music Library to Google Play Music
    Google Play Music offers an unlimited music streaming subscription paired with YouTube Red ...
  • How to Disable Your Mac’s Touchpad When Another Mouse Is Connected
    Laptop trackpads can be annoying. Your palm hits them while you’re typing, moving your cursor ...
  • How to Gain Root Access of An Android Device via KingoRoot Software
    What Does Root Access Mean? Gaining root access of Android is the process of modifying the ...

Random Posts

  • Xiaomi Redmi 4A review : precise finances choice for Rs five,999
    Xiaomi Redmi 4A review : precise finances choice for Rs five,999
    23.03.2017 - 0 Comments
    Xiaomi Redmi 4A review: This budget smartphone costs Rs 5,999 and delivers quite nicely on performance. Read…
  • New Samsung Galaxy Tab S3 release date, news and rumors
    New Samsung Galaxy Tab S3 release date, news and rumors
    22.02.2017 - 0 Comments
    Update: A leaked Samsung Galaxy Tab S3 shot shows it alongside a keyboard and gives us…
  • The best business technology and productivity gadgets
    The best business technology and productivity gadgets
    13.02.2017 - 0 Comments
    Laptops have overtaken desktop PCs as the preferred workhorse machines for most companies, regardless…
  • How to Unblock Airtel Sim 2017
    How to Unblock Airtel Sim 2017
    25.02.2017 - 0 Comments
    Today I am back again with a hot post, as most of you use airtel 3g trick, and I can bet that your Airtel…
  • Coffee Lake to go? Intel’s next-gen CPUs are around the corner
    Coffee Lake to go? Intel’s next-gen CPUs are around the corner
    10.02.2017 - 0 Comments
    Kaby Lake ? Forget about it – even though it’s hardly old news – because later this year,…

Labels

Android Apk Files Android Apps Android Games Apps Apk Files Apps Hack Tricks Entertainment Free Internet Freecharge Gadgets Games Apk Files How To's Laptops Guide Mobiles Reviews Technology Viral's android zone free recharge

Entertainment

Tricks

Popular Posts

  • Teen Patti Offer 2018: Refer and Earn Flipkart Vouchers Free
    Teen Patti Offer 2018: Refer and Earn Flipkart Vouchers Free
    Teen Patti Refer & ...
  • Researchers trick 'CEO' email scammer into giving up identity
    Businesses ...
  • How to Gain Root Access of An Android Device via KingoRoot Software
    What Does Root ...
  • Tinyowl Freecharge Offer – Get 15% Cashback + extra 25% cashback using Freecharge [Ultimatez Tricks]
    Tinyowl Freecharge ...
  • How to Disable Your Mac’s Touchpad When Another Mouse Is Connected
    Laptop ...
  • Infocus Vision 3 review
    What happens when ...
  • EVGA redesigns its graphics cards following overheating concerns
    Following a ...

Random Posts

  • DJI Osmo 2 Review
    DJI Osmo 2 Review
    03.02.2018 - 0 Comments
    The DJI Osmo Mobile 2 is the favored drone company’s most refined gimbal for smartphone cameras, enough…
  • How to Take a Screenshot of the Entire Webpage
    How to Take a Screenshot of the Entire Webpage
    19.02.2017 - 0 Comments
    A simple screenshot is great for capturing what’s immediately visible on your monitor, but what if you…
  • Review: Creative Sound Blaster Roar 2
    Review: Creative Sound Blaster Roar 2
    15.02.2017 - 0 Comments
    Creative VERDICT Smaller, but just as powerful as its progenitor, the Sound Blaster Roar 2 is a…
  • Watch Dogs 2 Is Now Available: Price, Special Editions, and More
    Watch Dogs 2 Is Now Available: Price, Special Editions, and More
    15.11.2016 - 0 Comments
    HIGHLIGHTS Watch Dogs 2 released Tuesday, November 15 on PS4 and XB1 The game costs Rs. 3,499 on…
  • Experts rush to ancient Palmyra after regime ousts Islamic State
    Experts rush to ancient Palmyra after regime ousts Islamic State
    28.03.2016 - 0 Comments
    Palmyra: Archaeologists were rushing to the ancient city of Palmyra on Monday to assess the…

Most Popular

  • Teen Patti Offer 2018: Refer and Earn Flipkart Vouchers Free
    Teen Patti Offer 2018: Refer and Earn Flipkart Vouchers Free
    Teen Patti Refer & ...
  • SAMSUNG GALAXY J7 (2016) REVIEWS
    SAMSUNG GALAXY J7 (2016) REVIEWS
    SAMSUNG GALAXY J ...
  • Top 5 Best SmartPhones under 7000 Rs (March 2017)
    Looking for the ...
  • Apple, IBM, Cisco are huge because of Indians, do not deny them H-1B visa: RBI Governor Urjit Patel
    ...
  • SAMSUNG GALAXY J7 (2016) Specifications
    SAMSUNG GALAXY J ...
  • BlackBerry Teases Marshmallow Beta Testing for Priv by Next Week
    Blackberry ...
  • LG Q6 Review
    LG Q6 Review
    2017 is ...

Contact Form

Name

Email *

Message *

Offers Zone

Created By Android Century Distributed by Android Century
  • Home
  • About us
  • Contact us
  • Privacy policy
  • Terms of use
  • Advertise here
Subscribe Via Email Subscribe To Android Century By Email And Get Free Updates. ;-)


Your email address is safe with us!