FinalCrypt：一个开源文件加密应用
FinalCrypt 加密
我通常不会加密文件，但如果我打算整理我的重要文件或凭证，加密程序就会派上用场。


你可能已经在使用像 [GnuPG](https://www.gnupg.org/) 这样的程序来帮助你加密/解密 Linux 上的文件。还有 [EncryptPad](https://itsfoss.com/encryptpad-encrypted-text-editor-linux/) 也可以加密你的笔记。


但是，我看到了一个名为 FinalCrypt 的新的免费开源加密工具。你可以在 [GitHub 页面](https://github.com/ron-from-nl/FinalCrypt)上查看其最新的版本和源码。


在本文中，我将分享使用此工具的经验。请注意，我不会将它与其他程序进行比较 —— 因此，如果你想要多个程序之间的详细比较，请在评论中告诉我们。


![FinalCrypt](/data/attachment/album/201903/05/001912pqkrcgizqbysifvc.png)


### 使用 FinalCrypt 加密文件


FinalCrypt 使用[一次性密码本](https://en.wikipedia.org/wiki/One-time_pad)密钥生成密码来加密文件。换句话说，它会生成一个 OTP 密钥，你将使用该密钥加密或解密你的文件。


根据你指定的密钥大小，密钥是完全随机的。因此，没有密钥文件就无法解密文件。


虽然 OTP 密钥用于加密/解密简单而有效，但管理或保护密钥文件对某些人来说可能是不方便的。


如果要使用 FinalCrypt，可以从它的网站下载 DEB/RPM 文件。FinalCrypt 也可用于 Windows 和 macOS。


* [下载 FinalCrypt](https://sites.google.com/site/ronuitholland/home/finalcrypt)


下载后，只需双击该 [deb](https://itsfoss.com/install-deb-files-ubuntu/) 或 rpm 文件就能安装。如果需要，你还可以从源码编译。


### 使用 FileCrypt


该视频演示了如何使用FinalCrypt：






安装 FinalCrypt 后，你将在已安装的应用列表中找到它。从这里启动它。


启动后，你将看到（分割的）两栏，一个进行加密/解密，另一个选择 OTP 文件。


![Using FinalCrypt for encrypting files in Linux](/data/attachment/album/201903/05/001915fy78iq8o6qdo6bbk.jpg)


首先，你必须生成 OTP 密钥。下面是做法：


![finalcrypt otp](/data/attachment/album/201903/05/001920i5u9z59wk51nkxp3.jpg)


请注意你的文件名可以是任何内容 —— 但你需要确保密钥文件的大小大于或等于要加密的文件。我觉得这很荒谬，但事实就是如此。


![](/data/attachment/album/201903/05/001923knenstitte5nmvet.jpg)


生成文件后，选择窗口右侧的密钥，然后选择要在窗口左侧加密的文件。


生成 OTP 后，你会看到高亮显示的校验和、密钥文件大小和有效状态：


![](/data/attachment/album/201903/05/001925rjwnw4hpmqmumpuq.jpg)


选择之后，你只需要点击 “Encrypt” 来加密这些文件，如果已经加密，那么点击 “Decrypt” 来解密这些文件。


![](/data/attachment/album/201903/05/001927ijdpn8jc18jjk8tz.jpg)


你还可以在命令行中使用 FinalCrypt 来自动执行加密作业。


#### 如何保护你的 OTP 密钥？


加密/解密你想要保护的文件很容易。但是，你应该在哪里保存你的 OTP 密钥？


如果你未能将 OTP 密钥保存在安全的地方，那么它几乎没用。


嗯，最好的方法之一是使用专门的 USB 盘保存你的密钥。只需要在解密文件时将它插入即可。


除此之外，如果你认为足够安全，你可以将密钥保存在[云服务](https://itsfoss.com/cloud-services-linux/)中。


有关 FinalCrypt 的更多信息，请访问它的网站：[FinalCrypt](https://sites.google.com/site/ronuitholland/home/finalcrypt)


### 总结


它开始时看上去有点复杂，但它实际上是 Linux 中一个简单且用户友好的加密程序。如果你想看看其他的，还有一些其他的[加密保护文件夹](https://itsfoss.com/password-protect-folder-linux/)的程序。


你如何看待 FinalCrypt？你还知道其他类似可能更好的程序么？请在评论区告诉我们，我们将会查看的！




---


via: <https://itsfoss.com/finalcrypt/>


作者：[Ankush Das](https://itsfoss.com/author/ankush/) 选题：[lujun9972](https://github.com/lujun9972) 译者：[geekpi](https://github.com/geekpi) 校对：[wxy](https://github.com/wxy)


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


OK
I usually don’t encrypt files – but if I am planning to organize my important documents or credentials, an encryption program would come in handy.

You may be already using a program like [GnuPG](https://www.gnupg.org/) that helps you encrypt/decrypt your files on your Linux machine. There is [EncryptPad](https://itsfoss.com/encryptpad-encrypted-text-editor-linux/) as well that encrypts your notes.

However, I have come across a new free encryption tool called FinalCrypt. The software is licensed with CC BY-NC-ND which is enote entirely compatible with the definition of open source.

You can check out their recent releases and the source on its [GitHub page](https://github.com/ron-from-nl/FinalCrypt).

In this article, I will be sharing my experience of using this tool. Do note that I won’t be comparing this with any other program available out there – so if you want a detailed comparison between multiple solutions, let us know in the comments.

![FinalCrypt](https://itsfoss.com/content/images/wordpress/2019/02/finalcrypt-800x450.png)

## Using FinalCrypt to encrypt files

[FinalCrypt](http://www.finalcrypt.org/) uses the [One-Time pad](https://en.wikipedia.org/wiki/One-time_pad) key generation cipher to encrypt files. In other words, it generates an OTP key which you will use for encrypting or decrypting your files.

The key will be completely random as per the size of the key – which you can specify. So, it is impossible to decrypt the file without the key file.

While the OTP key method for encryption/decryption is simple and effective, but managing or securing the key file could be an inconvenience for some.

If you want to use FinalCrypt, you can install the DEB/RPM files from its website. FinalCrypt is also available for Windows and macOS.

Once downloaded, simply double click to [install it from deb](https://itsfoss.com/install-deb-files-ubuntu/) or rpm files. You can also build it from the source code if you want.

## FileCrypt in Action

This video shows how to use FinalCrypt:

If you like Linux related videos, please [subscribe to our YouTube channel](https://www.youtube.com/c/itsfoss?sub_confirmation=1).

Once you have installed FinalCrypt, you’ll find it in your list of installed applications. Launch it from there.

Upon launch, you will observe two sections (split) for the items to encrypt/decrypt and the other to select the OTP file.

![Using FinalCrypt for encrypting files in Linux](https://itsfoss.com/content/images/wordpress/2019/02/finalcrypt.jpg?fit=800%2C439&ssl=1)

First, you will have to generate an OTP key. Here’s how to do that:

![finalcrypt otp](https://itsfoss.com/content/images/wordpress/2019/02/finalcrypt-otp-key-800x443.jpg)

Do note that your file name can be anything – but you need to make sure that the key file size is greater or equal to the file you want to encrypt. I found it weird but that’s how the [One-time pad encryption](https://en.wikipedia.org/wiki/One-time_pad) works.

![](https://itsfoss.com/content/images/wordpress/2019/02/finalcrypt-otp-generate.jpg)

After you generate the file, select the key on the right-side of the window and then select the files that you want to encrypt on the left-side of the window.

You will find the checksum value, key file size, and valid status highlighted after generating the OTP:

![](https://itsfoss.com/content/images/wordpress/2019/02/finalcrypt-key.jpg?fit=800%2C420&ssl=1)

After making the selection, you just need to click on “**Encrypt**” to encrypt those files and if already encrypted, then “**Decrypt**” to decrypt those.

![](https://itsfoss.com/content/images/wordpress/2019/02/finalcrypt-encrypt.jpg)

You can also use FinalCrypt in command line to automate your encryption job.

### How do you secure your OTP key?

It is easy to encrypt/decrypt the files you want to protect. But, where should you keep your OTP key?

It is literally useless if you fail to keep your OTP key in a safe storage location.

Well, one of the best ways would be to use a USB stick specifically for the keys you want to store. Just plug it in when you want to decrypt files and its all good.

In addition to that, you may save your key on a [cloud service](https://itsfoss.com/cloud-services-linux/), if you consider it secure enough.

More information about FinalCrypt can be found on its website.

**Wrapping Up**

It might seem a little overwhelming at the beginning but it is actually a simple and user-friendly encryption program available for Linux. There are other programs to [password protect folders](https://itsfoss.com/password-protect-folder-linux/) as well if you are interested in some additional reading.

What do you think about FinalCrypt? Do you happen to know about something similar which is potentially better? Let us know in the comments and we shall take a look at them!