The Ultimate Guide to Using Data Encryption on Linux

    Date 28 Jul 2020
    1471
    Posted By Brittany Day
    LS Hmepg 337x500 31

    Data encryption has never been more important. New data protection and privacy regulations, such as GDPR, mean that companies storing unencrypted customer information are vulnerable to paying heavy fines. The public is now more aware of the importance of encryption, with massive data breaches impacting companies like Facebook receiving major media coverage.

    With these issues in mind, it’s only natural that many of us want to start encrypting our sensitive data – both at work and at home. But how exactly should you go about it? This blog aims to answer that question by showing Linux users how to install and set up encryption on their systems.

    How to Protect Your Hard Drive from Physical Threats

    The good news for Linux users is that most popular Linux distributions offer an option to activate encryption during setup. The encryption built into these Linux distros is called partition encryption, and below we’ll take a closer look at some benefits of this type of encryption.

    Partition encryption, along with disk encryption, is one of two major types of data encryption. The main difference between the two is:

    • Disk encryption protects the entire drive.  
    • Partition encryption targets a section of a physical drive which has been defined as a separate partition. If a single partition occupies an entire hard drive, then partition encryption is equal to disk encryption. Yet a hard drive might also have multiple partitions – where partition encryption can naturally encrypt the whole hard drive.

    The added sophistication of partition encryption makes it the safer and more secure way to protect data on your PC. One reason for this is that less of your data is exposed when the system is running. Another factor is that partition encryption offers more rigorous security, with each partition capable of having its own unique encryption keys and passwords.

    How to Enable Partition Encryption

    Now that you know a bit more about partition encryption, let’s go into more detail on how to set it up on your computer. Below we have provided step-by-step instructions on how to enable partition encryption on two of the most popular Linux distributions: Fedora and Ubuntu. 

    • Fedora 32
      Step 1: At the ‘Installation Destination’ step of the setup Wizard, select the drive where you want to install Fedora. Check the ‘Encrypt my data’ box in the lower left corner.

    https://lh6.googleusercontent.com/ESEqWffXFQASnAqXR4cRLOhtKw7rrEYRoDYLIDkmqvTn2FHx8TeC5sWaiUkWGYZ6xOmG8Hm-6dRbjoJxYgXE1cTXoDeOD00zqix_lYWhkkmqL7GDHbuRHyfaNauO2ferdm1z5W5S
    Step 2: Set a strong encryption password.

    Step 3: Wait for installation to complete. You’ll need to enter the password you’ve chosen every time you start up your computer.

    • Ubuntu 20
      Step 1: At the ‘Installation type’ step of the setup Wizard, make sure ‘Erase disk and install Ubuntu’ is selected, then click on ‘Advanced features...’.

      Step 2: Select ‘Use LVM with the new Ubuntu installation’ in the pop-up dialog. Check the ‘Encrypt the new Ubuntu installation for security’ box. Click ‘OK’.

    https://lh6.googleusercontent.com/sng22fB0YbLCQVfvX50Ld7vgxVQ04ERl_TxDPwfOrrYt0LSxW0Srve3bJwlku3YxledIk5QpnAnmz1zFggS4_wlcqD_q--kyu9BIK3oDhlsQB7M88WtBTl3XCS2jruzKRdTIaiMZ
    Step 3: You’ll see that ‘LVM and encryption selected’ has now appeared next to ‘Advanced features…’. Click ‘Install Now’ to proceed.

    Step 4: Set a strong encryption password. Enter your password (‘security key’ in Ubuntu) twice and proceed with installation. 

    https://lh3.googleusercontent.com/OybESD8BkXWljvyYkT5d3DzjtC8hmv-TrALstsqIwl_Gdwu7GE8EwCencvr0w6mWRcEt0isrJ0JOTyKnAxCKtuOWWGYwixpL_XHv6NHwkUEj4CBylR84OvCpU7RUrgvkBPFzb9GK
    Step 5: Wait for installation to complete. You’ll need to enter the password you’ve chosen every time you start up your computer. 

    Good Start, but Not Enough for Complete Endpoint Data Protection

    If you want to protect your sensitive information in the event that your computer is lost or stolen, then partition encryption (free with most Linux distributions) is a great solution. However, partition encryption is unable to keep data safe when your computer is turned on and active, when data is stored in the cloud, or when data is being sent to others. Linux users who are concerned about this may want to look into securing their data with file encryption or container encryption in addition to partition encryption.

    Stay Secure by Encrypting Your Files

    To protect data on your active computer, it’s necessary for sensitive files and folders to be encrypted with an added layer. You can keep your data safe by using either file encryption or container encryption.

    By choosing file encryption, you are turning single files into locked, encrypted versions of themselves. Access is then granted after entering the correct password for each individual file. On the other hand, container encryption involves creating a secure virtual drive that is capable of storing many encrypted files at once.

    When it comes to security and efficiency, container encryption is the superior choice. Using container encryption means you don’t need to keep track of many different passwords in something like a ‘password book’ - which can present a security risk. Instead, you just need to remember one password to access each container.

    How to Create an Encrypted Container to Secure Files

    To benefit from this added layer of protection, take a look at the step-by-step instructions below on how to get started with container encryption. We have used BestCrypt Container Encryption as an example.

    Step 1: Create an Encrypted Container

    To get started, download BestCrypt Container Encryption. The software is also available for a free trial.

    • Open ‘Applications’, select ‘All’, and launch BestCrypt Container Encryption.

    • Click ‘Create new container’ in the window you just opened.

    https://lh4.googleusercontent.com/7873gA2VKrdC6ZeePmB__MFi6fw1u8taGgAYIUDNwQuEgIXz6LTdpY1hODbFT5rFBhf6SHEiCyNNwGZBhQYH78AhNAodZSTcWSBRqVj4yzYpdZvsgR-m15FowVUMGO9ShyvMme7B

    • Create a container by choosing a password, then click ‘Create’.

    https://lh4.googleusercontent.com/HZDSggu51jpP9FsC5unCzY0ixgkuk2Vdl5LFplb3lz5vDT1GOUuJxOvUYeMV-WFjOaPZalGCoIZ78TlneHXMhsJpQH-Z4d5QkloGfIlH9YsewA3GfxCMng-JYhD0H1YgLg6Qq7w4

    • Customize the name, size, and container description (optional).

    Step 2: Create and Copy Files to the Container

    • Once the container is created, the virtual folder will open automatically.

    https://lh4.googleusercontent.com/sq1Po3r2-9M8nm4bXkvJ2z6qLEKw55kVewLNTLj-tdc32O5OsO6xTa4SV6yD6k-l-h6eUZuqfXVgkWZj3dhZHC7Od0ckaX0TV3EET765MGbOkknPeVzam50X7OIfNjRQqEieTsmU

    • Place files in the container by dragging and dropping them into the folder.

    • You can also create encrypted files within the container in the same way you would create them normally.

    Step 3: Work with Your Secure Files

    • You’ll see your encrypted containers as files with the JBC extension.

    https://lh5.googleusercontent.com/S3ZRxbJ3kJF4OvDj0Y63UNL_u0lWx9qn-Qeme8Cia9PXUc9EaJmWfzddOhjfYY2XRolHzkmzXVfr89pACDYN9UJgxw3iw9OzclqQvkVsiVFtS_kYZJNu9fpq4hYtsenVEXdNdHey

    • You can work with your encrypted files when the container is mounted (open). To access the container, you’ll need to enter the password you created previously. 

    https://lh3.googleusercontent.com/mQJgfOosit0UxBuV3_dAtD7xNI7WZyGPjjfVABBefnJLVHZfk9sLuRmR9vxNQhJM9K_3_jMwC-jmCmpG_9tcVBsEH7yUPPEBhVVjWUz0Uu3LdbOJdkZ2CgmEejk41uVF4Pe1qKGI

    • Eject (close) the container as soon as you are done working with your files. This step is essential to ensure the protection of your sensitive data.

    • Copy, move, upload, and backup encrypted containers to the cloud just like you would with any other file.

    • Safely send your containers over the Internet and open them on any Linux, Mac, Windows, or Android device.

    Congratulations! You have now set up a robust encryption solution on your Linux system. However, it’s worth keeping in mind that using encryption on its own still leaves the possibility that your sensitive data could be recovered by a third party. You can make sure this doesn’t happen by erasing traces of information that are left behind after you copy files to an encrypted container.

    Happy encrypting!

    About the Author

    Michael Waksman has been serving as CEO of Jetico since 2011, more than doubling the size of the company during his tenure. He brings over 15 years of communications, technology and leadership experience.

    At Jetico, Waksman has led the creation of the corporate identity, raising global brand awareness, building a more commercially-driven team and initiating enterprise customer relations. Jetico has maintained a wide user base throughout the U.S. Defense community, in the compliance market and for personal privacy.

    Waksman is vice-chairman of the Cyber Group for the Association of Finnish Defense and Aerospace Industries. Recognized as a security and privacy advocate, he is a frequent speaker at international events, occasionally on behalf of the Finnish cyber security industry. In 2012, Waksman was honored with The Security Network's Chairman's Award for fostering collaboration between the United States and Finland. As a native New Yorker he has been living in southern Finland for over 10 years.

    LinuxSecurity Poll

    Are you planning to use the 1Password password manager now that it is available to Linux users?

    No answer selected. Please try again.
    Please select either existing option or enter your own, however not both.
    Please select minimum 0 answer(s) and maximum 3 answer(s).
    /main-polls/35-are-you-planning-to-use-the-1password-password-manager-now-that-it-is-available-to-linux-users?task=poll.vote&format=json
    35
    radio
    [{"id":"122","title":"Yes","votes":"1","type":"x","order":"1","pct":25,"resources":[]},{"id":"123","title":"No ","votes":"2","type":"x","order":"2","pct":50,"resources":[]},{"id":"124","title":"Not sure at the moment","votes":"1","type":"x","order":"3","pct":25,"resources":[]}] ["#ff5b00","#4ac0f2","#b80028","#eef66c","#60bb22","#b96a9a","#62c2cc"] ["rgba(255,91,0,0.7)","rgba(74,192,242,0.7)","rgba(184,0,40,0.7)","rgba(238,246,108,0.7)","rgba(96,187,34,0.7)","rgba(185,106,154,0.7)","rgba(98,194,204,0.7)"] 350
    bottom 200

    Advisories

    Please enable / Bitte aktiviere JavaScript!
    Veuillez activer / Por favor activa el Javascript![ ? ]

    We use cookies to provide and improve our services. By using our site, you consent to our Cookie Policy.