1. Introduction
GnuPG is a cryptographic software that is a substitute for PGP cryptographic software that satisfies the GPL protocol. GnuPG is designed in accordance with the OPENPGP technical standard set by the IETF. GnuPG for encryption, digital signature and the creation of asymmetric key pairs of software.
GnuPG is part of the GNU program of the Free Software Foundation and is currently funded by the German government. Authorized under the GNU General Public License Third edition.
2, the supported algorithm
Public key: RSA, Rsa-e, Rsa-s, ELG-E, DSA
Symmetric encryption: 3DES, CAST5, BLOWFISH, AES, AES192, AES256, Twofish
Hash: MD5, SHA1, RIPEMD160, SHA256, SHA384, SHA512
Compression: Uncompressed, ZIP, ZLIB, BZIP2
3. Use
-S,--sign [filename] generates a signature
--clearsign [filename] generates a plaintext signature
-B,--detach-sign to generate a separate signature
-E,--encrypt encrypted data
-C,--symmetric only uses symmetric encryption
-D,--decrypt decrypt data (default)
--verify Verification Signature
--list-keys list keys
--list-sigs list Key and signature
--check-sigs list and check key signature
--fingerprint lists keys and fingerprints
-K,--list-secret-keys listing private keys
--gen-key generates a new pair of keys
--delete-keys remove key from public key key ring
--delete-secret-keys remove key from private key key ring
--sign-key to add a signature to a key
--lsign-key add a local signature to a key
--edit-key edit a key or add a signature to it
--gen-revoke Generate a revocation certificate
--export Export Key
--send-keys to export a key to a public key server
--recv-keys import a key from a public key server
--search-keys search for keys on a public key server
--refresh-keys Update all local keys from the public key server
--import Import/Merge key
--card-status Print card status
--card-edit change the data on the card
--change-pin change the pin of the card
--UPDATE-TRUSTDB Update Trust Database
--PRINT-MD algorithm [file] prints message hash value using the specified hash algorithm
Options:
-A,--armor output via ASCII encapsulation
-R,--recipient person for recipient "person" encryption
-U,--local-user Use this user ID to sign or decrypt
-Z N Sets the compression level to n (0 means no compression)
--textmode using standard text patterns
-O,--output specify output file
-V,--verbose verbose mode
-N,--dry-run doesn't make any changes.
-I ask before--interactive cover
--OPENPGP behavior strictly follows OPENPGP definition
--PGP2 generates a message that is compatible with PGP 2.x
4. Example
-se-r Bob [file] signed and encrypted for Bob (specify file)
--clearsign [file] make plain text signature (specify file)
--detach-sign [file] make a separable signature (specify file)
--list-keys [Names] Displays the key list (specify user name)
--fingerprint [Names] Display fingerprint (Specify user name)
References: Baidu Encyclopedia and Wikipedia