Open Source Encryption tool GPG use method

Source: Internet
Author: User
Tags address debian download download it email address file files get
GPG and PGP are two types of encryption software that you can use to spread your files securely through the public key. I used the GPG a few days ago, feel very convenient, use also encountered some problems. So my use after writing out, the purpose is to make the first use of GPG friends less detours. First say GPG get it, GPG is open source software, is completely free, you can download to www.gnupg.org. If you are using a mandrakelinux or Debian release, you can download it directly. I am using Mandrakelinux, as long as in the terminal input URPMI GPGP can be downloaded and installed. After installation, we enter in the terminal: GPG--help can see GPG version information and help. This means that GPG has been installed. Let's generate the key, type: GPG--gen-key There will be several options, which we should choose: GPG (GnuPG) 1.4.0; Copyright (C) Software Foundation, inc.this program comes with absolutely NO WARRANTY. This is the free software, and your are welcome to redistribute itunder certain. See the file COPYING for details. Please select the type of key you want to use: (1) DSA and ElGamal (default) (2) DSA (for signature only) (5) RSA (for signature only) your choice? This we generally choose 1,GPG Default is also 1. SA KeyPair'll have 1024 bits. ELG-E keys may inclusive 1024 and 4096 bits long. What keysize do you want? (2048) This is the length of the key, general input 1024 please set the expiration date of this key. 0 = key never expires <n> = key expires in n days <n>w = key expires after n weeks <n>m = key expires after n months <n>y = The expiration date of the key after n years is? (0) This is the duration of the specified key, you can choose your own. You need a user ID to identify your key; The software is combined with a real name, comment, and e-mail address as the user ID, as follows: "Heinrich Heine (Der dichter) <heinrichh@duesseldorf.de>" Real name: Email Address: Note: This is the user ID, you can enter your favorite email address. Please enter the password: this need for your private key to specify a protection password, this must be protected, otherwise your encrypted file will be easily solved by others. Okay now GPG has generated your public and private key. Now tell me what GPG can do for us, if you want to send a paper to your friend and not want a third person to see it. You can do this. In terminal input: GPG--encrypt-r bob [FileName] Bob represents the recipient signing and encrypting [FileName] for the file name that needs to be encrypted. Then you can send your public key to your friends. The method for exporting the public key is: GPG--export>name.asc your friend as soon as your public key is imported into his gpg, you can decrypt the file you sent to him: The decryption method is GPG--decrypt [encrypted file]>[the decrypted file] > The redirection character, which means that the result of the GPG--decrypt [file] is saved to the [decrypted file] file, so you can see the text you sent. To force (0 Votes) Tempted (0 Votes) nonsense (0 Votes) Professional (0 Votes) title Party (0 Votes) passing (0 Votes) Text: Open source Encryption tool GPG use method return to network security home

Contact Us

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.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.