Nowadays, both email and chat Information on the Internet are very insecure. Obviously, we need to increase our awareness of defense and improve the security factor of our files, at the same time, we also need to be vigilant against tampering with information from our friends. Now we will briefly describe the gpg encryption application in linux to ensure the authenticity, integrity, and confidentiality of our files.
Encryption and decryption
Generate key pair
View keys
Export Private Key
Export key
Publish your own public key
Roses imports the jacks public key into your host
Roses encrypts files with the jscks Public Key
Roses sends the encrypted file to jacks
If it is opened directly, garbled characters are displayed.
Jacks uses its own private key to decrypt the file
Signature and Encryption
Roses
Export Private Key
Export Public Key
Send your public key to your friend jacks.
Jacks imports the roses public key to its host.
Roses sends a signed file to jacks.
Jacks uses the roses public key to decrypt the signature. You can see that the file is from roses.
Jacks replies to roses a file with encryption and signature
Roses uses its own private key to unbind the envelope and uses the jacks public key to unbind the digital signature.