如何在 Ubuntu 16.04 上安装和使用 Encryptpad
EncryptPad 加密 PGP
![](/data/attachment/album/201802/24/111516b0a0arbn8b4bbir7.jpg)


EncryptPad 是一个自由开源软件，它通过简单方便的图形界面和命令行接口来查看和修改加密的文本，它使用 OpenPGP RFC 4880 文件格式。通过 EncryptPad，你可以很容易的加密或者解密文件。你能够像保存密码、信用卡信息等私人信息，并使用密码或者密钥文件来访问。


### 特性


* 支持 windows、Linux 和 Max OS。
* 可定制的密码生成器，可生成健壮的密码。
* 随机的密钥文件和密码生成器。
* 支持 GPG 和 EPD 文件格式。
* 能够通过 CURL 自动从远程远程仓库下载密钥。
* 密钥文件的路径能够存储在加密的文件中。如果这样做的话，你不需要每次打开文件都指定密钥文件。
* 提供只读模式来防止文件被修改。
* 可加密二进制文件，例如图片、视频、归档等。


在这份教程中，我们将学习如何在 Ubuntu 16.04 中安装和使用 EncryptPad。


### 环境要求


* 在系统上安装了 Ubuntu 16.04 桌面版本。
* 在系统上有 `sudo` 的权限的普通用户。


### 安装 EncryptPad


在默认情况下，EncryPad 在 Ubuntu 16.04 的默认仓库是不存在的。你需要安装一个额外的仓库。你能够通过下面的命令来添加它 ：



```
sudo apt-add-repository ppa:nilaimogard/webupd8

```

下一步，用下面的命令来更新仓库：



```
sudo apt-get update -y

```

最后一步，通过下面命令安装 EncryptPad：



```
sudo apt-get install encryptpad encryptcli -y

```

当 EncryptPad 安装完成后，你可以在 Ubuntu 的 Dash 上找到它。


### 使用 EncryptPad 生成密钥和密码


现在，在 Ubunntu Dash 上输入 `encryptpad`，你能够在你的屏幕上看到下面的图片 ：


[![Ubuntu DeskTop](/data/attachment/album/201802/24/111525uhuy09qw0e9n072k.png)](https://www.howtoforge.com/images/how_to_install_and_use_encryptpad_on_ubuntu_1604/big/Screenshot-of-encryptpad-dash.png)


下一步，点击 EncryptPad 的图标。你能够看到 EncryptPad 的界面，它是一个简单的文本编辑器，带有顶部菜单栏。


[![EncryptPad screen](/data/attachment/album/201802/24/111528njkvrqh3w35tt8qw.png)](https://www.howtoforge.com/images/how_to_install_and_use_encryptpad_on_ubuntu_1604/big/Screenshot-of-encryptpad-dashboard.png)


首先，你需要生成一个密钥文件和密码用于加密/解密任务。点击顶部菜单栏中的 “Encryption->Generate Key”，你会看见下面的界面：


[![Generate key](/data/attachment/album/201802/24/111531jq1iqerx3avxkj6e.png)](https://www.howtoforge.com/images/how_to_install_and_use_encryptpad_on_ubuntu_1604/big/Screenshot-of-encryptpad-generate-key.png)


选择文件保存的路径，点击 “OK” 按钮，你将看到下面的界面：


[![select path](/data/attachment/album/201802/24/111533fqccm7m88981v9z9.png)](https://www.howtoforge.com/images/how_to_install_and_use_encryptpad_on_ubuntu_1604/big/Screenshot-of-encryptpad-generate-passphrase.png)


输入密钥文件的密码，点击 “OK” 按钮 ，你将看到下面的界面：


[![last step](/data/attachment/album/201802/24/111536pjvnqhi2xivqvlek.png)](https://www.howtoforge.com/images/how_to_install_and_use_encryptpad_on_ubuntu_1604/big/Screenshot-of-encryptpad-use-key-file.png)


点击 “yes” 按钮来完成该过程。


### 加密和解密文件


现在，密钥文件和密码都已经生成了。可以执行加密和解密操作了。在这个文件编辑器中打开一个文件文件，点击 “encryption” 图标 ，你会看见下面的界面：


[![Encry operation](/data/attachment/album/201802/24/111539g03x0cff96f36w6v.png)](https://www.howtoforge.com/images/how_to_install_and_use_encryptpad_on_ubuntu_1604/big/Screenshot-of-encryptpad-start-encryption.png)


提供需要加密的文件和指定输出的文件，提供密码和前面产生的密钥文件。点击 “Start” 按钮来开始加密的进程。当文件被成功的加密，会出现下面的界面：


[![Success Encrypt](/data/attachment/album/201802/24/111542i2332g2z3wzgww6b.png)](https://www.howtoforge.com/images/how_to_install_and_use_encryptpad_on_ubuntu_1604/big/Screenshot-of-encryptpad-file-encrypted-successfully.png)


文件已经被该密码和密钥文件加密了。


如果你想解密被加密后的文件，打开 EncryptPad ，点击 “File Encryption” ，选择 “Decryption” 操作，提供加密文件的位置和你要保存输出的解密文件的位置，然后提供密钥文件地址，点击 “Start” 按钮，它将要求你输入密码，输入你先前加密使用的密码，点击 “OK” 按钮开始解密过程。当该过程成功完成，你会看到 “File has been decrypted successfully” 的消息 。


[![decrypt ](/data/attachment/album/201802/24/111545ff6v73pin3qmfzni.png)](https://www.howtoforge.com/images/how_to_install_and_use_encryptpad_on_ubuntu_1604/Screenshot-of-encryptpad-decryption-passphrase.png) [![](/data/attachment/album/201802/24/111549u56ky6655dkn6dqo.png)](https://www.howtoforge.com/images/how_to_install_and_use_encryptpad_on_ubuntu_1604/big/Screenshot-of-encryptpad-decryption-passphrase.png) [![](/data/attachment/album/201802/24/111542i2332g2z3wzgww6b.png)]


**注意：**


如果你遗忘了你的密码或者丢失了密钥文件，就没有其他的方法可以打开你的加密信息了。对于 EncrypePad 所支持的格式是没有后门的。




---


via: <https://www.howtoforge.com/tutorial/how-to-install-and-use-encryptpad-on-ubuntu-1604/>


作者：[Hitesh Jethva](https://www.howtoforge.com) 译者：[singledo](https://github.com/singledo) 校对：[wxy](https://github.com/wxy)


本文由 [LCTT](https://github.com/LCTT/TranslateProject) 原创编译，[Linux中国](https://linux.cn/) 荣誉推出


OK
# How to Install and Use Encryptpad on Ubuntu 16.04

EncryptPad is a free and open source software application that can be used for viewing and editing encrypted text using a simple and convenient graphical and command line interface. It uses OpenPGP RFC 4880 file format. You can easily encrypt and decrypt file using EncryptPad. Using EncryptPad, you can save your private information like, password, credit card information and access the file using a password or key files.

### Features

- Supports Windows, Linux and Mac OS
- Customisable passphrase generator helps create strong random passphrases.
- Random key file and password generator.
- Supports GPG and EPD file formats.
- You can download key automatically from remote storage using CURL.
- Path to a key file can be stored in an encrypted file. If enabled, you do not need to specify the key file every time you open files.
- Provide read only mode to prevent file modification.
- Encrypt binary files such as, images, videos, archives.

In this tutorial, we will learn how to install and use the software EncryptPad on Ubuntu 16.04.

## Requirements

- Ubuntu 16.04 desktop version installed on your system.
- A normal user with sudo privileges setup on your system.

## Install EncryptPad

By default, EncryptPad is not available in Ubuntu 16.04 default repository. So you will need to install an additional repository for EncryptPad first. You can add it with the following command:

sudo apt-add-repository ppa:nilarimogard/webupd8

Next, update the repository using the following command:

sudo apt-get update -y

Finally, install EncryptPad by running the following command:

sudo apt-get install encryptpad encryptcli -y

Once the installation is completed, you should locate it under Ubuntu dashboard.

## Access EncryptPad and Generate Key and Passphrase

Now, go to the **Ubuntu Dash** and type **encryptpad**, you should see the following screen:

Next, click on the **EncryptPad** icon, you should see the first screen of the EncryptPad in following screen. It is a simple text editor and has a menu bar on the top.

First, you will need to generate a key and passphrase for future encryption/decryption tasks. To do so, click on **Encryption > Generate Key** option from the top menu, you should see the following screen:

Here, select the path where you want to save the file and click on the **Ok** button, you should see the following screen:

Now, enter passphrase for the key file and click on the **Ok** button, you should see the following screen:

Now, click on the yes button to finish the process.

## Encrypt and Decrypt File

Now, the key file and passphrase are generated, it's time to perform encryption and decryption operation. To do so, open any text file in this editor and click on the **encryption** icon, you should see the following screen:

Here, provide input file which you want to encrypt and specify the output file, provide passphrase and the path of the key file which we have generated earlier, then click on the Start button to start the process. Once the file has been encrypted successfully, you should see the following screen:

Your file is now encrypted with key and passphrase.

If you want to decrypt this file, open **EncryptPad**, click on **File Encryption**, choose **Decryptio** option, provide the path of your encrypted file and path of the output file where you want to save the decrypted file, then provide path of the key file and click on the Start button, it will ask you for passphrase, enter your passphrase and click on Ok button to start the Decryption process. Once the process is completed successfully, you should see the "File has been decrypted successfully message".

**Note:** If you forgot your passphrase or lost a key file, there is no way that can be done to open your encrypted information. There are no backdoors in the formats that EncryptPad supports.