Gpg command encryption and decryption and signature verification instance-Linux general technology-Linux technology and application information, the following is a detailed description. 1. Explore gpg commands
$ Which gpg
/Usr/bin/gpg
$
This article consists of Ilanniweb provide friendship sponsorship, starting in the mud row of the world To get more articles, you can follow my ilanniweb. Why study GPG? Because you want to encrypt the password of a mailbox under Linux, do not let
GpgfunctionGPG is a free tool for encryption and digital signatures, mostly for the transmission of encrypted information. In addition to password-only encryption, the biggest difference in GPG is the provision of a "public/private key" pair. Use
When using the yum installation package of the Red Hat system, one option is the gpgcheck option. When I first started learning, I disabled this option by default, recently, I finally understood how gpg uses gpg as a user's personal encryption and
Main content: GPG encryption and decryption of the basic operation and a small number of applications.
Brief introduction
Installation
Generate key Operation procedure
Some operations on keys
View Key
Export
1. Generate a key pair: gpg -- gen-key Generate a new key pair for the user. Required: Key type (RSA/RSA by default); key length (in bits); expiration time (to prevent key corruption ); (I usually press enter all the way.) Next, enter the name,
Comments: GPG and PGP are two types of encryption software. You can use the public key to securely spread your own files on the Internet. I used GPG a few days ago, which was very convenient and encountered some problems. Therefore, I wrote my usage
Simple use of GPG in Linux
This article briefly describes how to encrypt and use GPG in Linux.
1. Generate a key
Gpg-gen-key
The following screen may appear,
> This information prompts you to create random activities on the system. You can
Objective:
GPG is the Free Software Foundation developed to replace the commercial encryption software PGP replacement, named GnuPG. GPG has many uses, this article mainly introduces file encryption. Red Hat series Linux packages are
The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion;
products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the
content of the page makes you feel confusing, please write us an email, we will handle the problem
within 5 days after receiving your email.
If you find any instances of plagiarism from the community, please send an email to:
info-contact@alibabacloud.com
and provide relevant evidence. A staff member will contact you within 5 working days.