How to Install Seahorse Encryption on Ubuntu

Chưa phân loại
SeaHorse is a graphical application for managing GPG keys and encryption on GNOME 3 desktop environment.

In this article, I will show you how to install and setup SeaHorse encryption on Ubuntu. Let’s get started.

Installing SeaHorse on Ubuntu 18.04

SeaHorse is available in the official package repository of Ubuntu 18.04. It should be installed by default on Ubuntu 18.04 LTS. But in case you don’t have it installed, this is how you install it.

Before you install SeaHorse, update the apt package repository cache with the following command:

$ sudo apt-get update

The package repository cache should be updated.

Now install SeaHorse with the following command:

$ sudo apt-get install seahorse

Press y and then press <Enter> to continue. SeaHorse should be installed. In my case, it was already installed as you can see in the screenshot below.

SeaHorse also has a Nautilus File Manager plugin. It may not be installed by default. You can install SeaHorse Nautilus plugin with the following command:

$ sudo apt-get install seahorse-nautilus

Now press y and then press <Enter> to continue.

SeaHorse Nautilus plugin should be installed.

Now you can run the following command to verify whether SeaHorse is working correctly:

$ seahorse –version

As you can see, SeaHorse 3.20.0 is installed.

Now you can go to the Application Menu and search for Password and Keys or SeaHorse. You should see Password and Keys icon as marked in the screenshot below. Click on the Password and Keys icon.

SeaHorse should start as you can see in the screenshot below.

Now that you know how to install and open SeaHorse, let’s see how to use it.

Creating Keys

The first thing you must do before you can encrypt files with SeaHorse is generate a Public and Private key pair. You can easily do it with SeaHorse graphical front end. No more complex commands, yeah!

To create a new Public & Private key pair, go to File and then click on New… as marked in the screenshot below.

Now select PGP Key and click on Continue as marked in the screenshot below.

Type in your Full Name and Email Address. You can click on Create to continue at this point. Of course there are other options.

You can click on Advanced key options as marked in the screenshot below to reveal them.

You may add a Comment here. It may be useful if you need to generate multiple key pairs. That way it will be easier for you to figure out which key you generated for what purpose.

You may also click on Encryption Type to change the Encryption key type. The default is RSA. DSA ElGamal, DSA (sign only), RSA (sign only) encryption type is also available. If you don’t know what that is, just leave the default.

You can change the Key Strength as well. The default is 2048 bits, which is good enough. The more bits it is, the more secure it will be. But increasing the bits will also result in slower encryption and decryption speed.

You can also set an Expiration Date for the key. But for File encryption, the default Never Expires is a good enough. You don’t want your key to expire while you still have encrypted files. You probably won’t be able to decrypt it then.

Once you’re done, click on Create.

Now type in your secret Password and click on OK.

The key should be created as you can see in the screenshot below.

Exporting the Key

You may select the key and click on File and then click on Export to export the key. It’s a good idea to keep a backup of your key.

Select a location and name and then click on Export. The GPG key should be exported to the desired location.

Encrypting and Decrypting Files and Folders

Now you can open Nautilus file manager and encrypt files and folders.

To encrypt a file or folder, right click on it and click on Encrypt… as marked in the screenshot below.

You should see the following window. Select the keys from the list that you want to be able to decrypt the file and folder. Select your own key if you only want yourself to decrypt the files and folders.

Now click on Sign message as drop down menu and select your key from the list.

Now click on OK.

You should see the following window. You can select one of the radio buttons to encrypt each file separately or encrypt everything and generate a single compressed file. I will select the later.

Once you’re done, click on OK.

Now enter your key password and click on OK.

The file should be encrypted and two new file should be generated as you can see in the screenshot below. The file ending in .pgp is the encrypted file.

Now to decrypt the .pgp file, right click on it and click on Open With Decrypt File. It should ask you to enter the password. In my case it didn’t. Because I have the public and private key pair configured on my computer with SeaHorse. Otherwise, it would’ve.

I deleted the file. As you can it re-appeared.

That’s how you install and setup SeaHorse encryption on Ubuntu. Thank you for reading this article.

Sandclock IDC thành lập vào năm 2012, là công ty chuyên nghiệp tại Việt Nam trong lĩnh vực cung cấp dịch vụ Hosting, VPS, máy chủ vật lý, dịch vụ Firewall Anti DDoS, SSL… Với 10 năm xây dựng và phát triển, ứng dụng nhiều công nghệ hiện đại, Sandclock IDC đã giúp hàng ngàn khách hàng tin tưởng lựa chọn, mang lại sự ổn định tuyệt đối cho website của khách hàng để thúc đẩy việc kinh doanh đạt được hiệu quả và thành công.
Bài viết liên quan

Convert Hexadecimal to Decimal in Bash

Four types of number systems are popular in computer systems. These are Decimal, Binary, Octal and Hexadecimal. The binary...

How to Execute Commands from Within a Shell Script

In bash, executing commands from a shell script can be a little intimidating at first and may require a leap of faith....

Install PyCharm on Ubuntu

Install PyCharm 2017.3 on Ubuntu 17.10 PyCharm is a very popular IDE (Integrated Development Environment) for Python programming....
Bài Viết

Bài Viết Mới Cập Nhật

Hướng dẫn chuyển đổi windows server windows evaluation to standard và active windows server 2008 + 2012 + 2016 + 2019

How to Update Ubuntu Linux

Squid Proxy Manager cài đặt và quản lý Proxy Squid tự động trên ubuntu

Hướng dẫn cài đặt Apache CloudStack

Hướng dẫn ký file PDF bằng chữ ký số (chữ ký điện tử) và sửa lỗi mới nhất 2021 foxit reader