Last updated: 2002-04-18 GnuPG 1.0.6 gpg(1) gpg(1) NAME µ{¦¡¦WºÙ gpg -- encryption and signing tool ½s½X¥[±K»PñÃÒ¤u¨ã SYNOPSIS ¨Ï¥Î·§­n gpg [--homedir name] [--options file] [options] command [args] ®a¥Ø¿ý ¿ï¶µ «ü¥O ¤Þ¼Æ DESCRIPTION ²­z gpg is the main program for the GnuPG system. GPG ¬O GnuPG ¨t²Îªº¥Dµ{¦¡ This man page only lists the commands and options available. For a more verbose documentation get the GNU Privacy Handbook (GPH), which is available at http://www.gnupg.org/gph/ . You will find a list of HOWTO documents at http://www.gnupg.org/docs.html . ¥»¤å¤º®e¶È¦C¥X¥i¥Îªº©R¥O»P¿ï¶µ¡A¸û²`¤Jªº¤º®e½Ð°Ñ¾\ GPH ¤â ¥U¡A¸Ó¤â¥U¥i¦Û http://www.gnupg.org/gph/ (͵ù¡G¥»³sµ²¥Ø«e ¤w²¾¦Ü¡Ghttp://www.gnupg.org/docs.html) ¤U¸ü¡C¥t¥~¥i¦b http://www.gnupg.org/docs.html §ä¨ì HOWTO ªº¤å¥ó¦Cªí¡C COMMANDS «ü¥O gpg recognizes these commands: GPG ©Ò¯à¹B¥Îªº«ü¥O¦p¤U -s, --sign Make a signature. This command may be combined with --encrypt. ±N¸ê®ÆÃ±¸p½s½X«á¿é¥X¡C¥»«ü¥O¥i»P --encrypt ¦X¨Ö¨Ï ¥Î¡C --clearsign Make a clear text signature. ª½±µ¹ï­ì©l¸ê®Æ¥[¤Jñ¸p¸ê°T¡C(Ķ«ö¡G¶È¾A¥Î©ó¤å¦r¸ê ®Æ) -b, --detach-sign Make a detached signature. »s§@¤@¥÷¤ÀÂ÷ªºÃ±¸pÀÉ¡C(Ķ«ö¡G¥i¥Î©ó«D¤å¦rÀÉ®×) -e, --encrypt Encrypt data. This option may be combined with --sign. ¹ï¸ê®Æ½s½X¥[±K¡C¥»¶µ¥i»P --sign ¨Ö¥Î¡C -c, --symmetric Encrypt with symmetric cipher only. This command asks for a passphrase. ¨Ï¥Î¹ïºÙ¦¡¥[±Kªk³B²z¸ê®Æ¡C¥»«ü¥O·|­n¨D¿é¤J±K½X¡C --store Store only (make a simple RFC1991 packet). ¶È¹ï¸ê®Æ°µ½s½X³B²z¡C(»s§@¤@¥÷²³æªº RFC1991 «Ê¥]) --decrypt [file] Decrypt file (or stdin if no file is specified) and write it to stdout (or the file specified with --output). If the decrypted file is signed, the signature is also verified. This command differs from the default operation, as it never writes to the filename which is included in the file and it rejects files which don't begin with an encrypted message. ¹ïÀɮ׸ѱK¸Ñ½X (¦p¥¼«ü©wÀɮ׫h¹ï¼Ð·Ç¿é¤J°µ³B²z) ¨Ã¿é¥X¦Ü¼Ð·Ç¿é¥X³]³Æ (©Î¼g¤J¦Ü --output ©Ò«ü©wªº Àɮפ¤)¡C¦pªG¥[±KÀɤw¸g¹Lñ¸p¡A«hñ¸p¸ê®Æ±N¦P®É³Q ÅçÃÒ¡C¥»«ü¥O»P¤º©wªº³B²z©Ò¤£¦P¬O¡A¥¦¤£·|ª½±µ±N¿é ¥Xªº¸ê®Æ¼g¤J»P­ì¥[±KÀɦP¦WªºÀɮפ¤¡A¦P®É¥¦¤]¤£·| ¥h³B²z¥¼¸g½s½X¹Lªº¸ê®Æ¡C --verify [[sigfile] [signed-files]] Assume that sigfile is a signature and verify it without generating any output. With no arguments, the signature packet is read from stdin. If only a sigfile is given, it may be a complete signature or a detached signature, in which case the signed stuff is expected in a file without the ".sig" or ".asc" extension. With more than 1 argument, the first should be a detached signature and the remaining files are the signed stuff. To read the signed stuff from stdin, use - as the second filename. For security reasons a detached signature cannot read the signed material from stdin without denoting it in the above way. ¤º©w°²³] sigfile ¬°¤@¥÷ñ¸pÀÉ¥B¦bÅçÃҫᤣ²£¥Í¥ô¦ó ¿é¥X¡C­Y¥¼¦b¿ï¶µ«á¥[¤W¥ô¦ó¤Þ¼Æ¡A«hñ¸p¸ê®Æ±N¦Û¼Ð ·Ç¿é¤JºÝŪ¨ú¡C­Y¤Þ¼Æ¶È¦³Ã±¸pÀÉ (sigfile)¡A¥¦¥i¯à ¬O¤@¥÷§¹¾ãªºÃ±¸p©Î¤ÀÂ÷¦¡Ã±¸p¡A¦b³o±¡ªp¤U¤wñ¸pªº ¸ê®Æ±N°²³]¬°¨S¦³ .SIG ©Î .ASC °ÆÀɦWªºÀɮסC·í¤Þ ¼Æ¤£¤î¤@­Ó®É¡A²Ä¤@­Ó¤Þ¼Æ¶·¬°¤ÀÂ÷¦¡Ã±¸pÀɦӨä¥Lªº «h¬O³Qñ¸pªºÀɮסC­n¦Û¼Ð·Ç¿é¤J³]³ÆÅª¨ú³Qñ¸pªº¸ê ®Æ¡A½Ð¨Ï¥Î - (͵ù¡G´î¸¹) ¬°²Ä¤G­ÓÀɮצWºÙ¡C°ò©ó ¦w¥þ¤Wªº¦Ò¶q¡A¤ÀÂ÷¦¡ªºÃ±¸p¤£¯à±q¼Ð·Ç¿é¤JºÝµLÁnµL ®§¦aŪ¨úñ¸p«áªº¸ê®Æ¦p«e­z¤§°µªk¡C(Ķ«ö¡G¨Ï¥Î -) --verify-files [files] This is a special version of the --verify command which does not work with detached signatures. The command expects the files to be verified either on the command line or reads the filenames from stdin; each name must be on separate line. The command is intended for quick checking of many files. ³o¬O¤@­Ó --verify «ü¥Oªº¯S§Oª©¡A¥¦¨Ã¤£¥Î¨ÓÅçÃÒ¤À Â÷¦¡Ã±¸pÀÉ¡C¥»«ü¥O¥Î¥HÅçÃÒ¤wñ¸p¹LªºÀɮסAÀɮצW ºÙ¥i¬°«ü¥Oªº¤Þ¼Æ©Î¦Û¼Ð·Ç¿é¤J³]³Æ¿é¤J¡F¨C¤@­Ó±ýÅç ÃÒªºÀɮצWºÙ¶·¦ì¦b¨C¤@­Ó¿W¥ß¦C¤¤ (͵ù¡G¤£¥i±N³\ ¦hÀɦW¸m©ó¦P¤@¦C¤¤¦Ó¥HªÅ®æ©Î²Å¸¹¤À¹j)¡C¥»«ü¥Oªº¥Ø ¦a¦b©ó¦P®É§Ö³tÅçÃÒ³\¦hÀɮסC --list-keys [names] --list-public-keys [names] List all keys from the public keyrings, or just the ones given on the command line. ¦C¥X©Ò¦³¦b¤½Æ_°Í°é¤¤ªº¤½Æ_¡A©Î¶È¦C¥X«ü¥O¤§¤Þ¼Æ names ¦b¤½Æ_°Í°é¤¤ªº¤½Æ_¸ê°T¡C(͵ù¡G»P¤W¤è«ü¥O¬Û ¦P) --list-secret-keys [names] List all keys from the secret keyrings, or just the ones given on the command line. ¦C¥X©Ò¦³¦b¨pÆ_°Í°é¤¤ªº¨pÆ_¡A©Î¶È¦C¥X¤Þ¼Æ©Ò«ü©wªº ¨pÆ_¸ê°T¡C --list-sigs [names] Same as --list-keys, but the signatures are listed too. ¦P¤W --list-keys «ü¥O¡A¦ý¬Oñ¸p¸ê°T¤]·|¤@¨Ö¦C¥X¡C --check-sigs [names] Same as --list-sigs, but the signatures are verified. ¦P¤W --list-sigs «ü¥O¡A¦ý¬Oñ¸p¸ê°T·|¸g¹LÅçÃÒ¡C --fingerprint [names] List all keys with their fingerprints. This is the same output as --list-keys but with the additional output of a line with the fingerprint. May also be combined with --list- sigs or --check-sigs. If this command is given twice, the fingerprints of all secondary keys are listed too. ¦C¥X©Ò¦³¤½Æ_ªº«ü¯¾¡C³o­Ó«ü¥O¿é¥X»P --list-keys ¬Û ¦Pªº¸ê°T¡A¦ý¥t¥~¦h¤F¤@¦æ¤½Æ_«ü¯¾ªº¸ê®Æ¡C¥»«ü¥O¥i »P --list-sigs ©Î --check-sigs ¨Ö¥Î¡C­Y¥»«ü¥O¦P®É ¨Ï¥Î¨â¦¸¡A«h·|±N©Ò¦³°ÆÆ_ªº«ü¯¾¤]¥þ³¡¦C¥X¡C --list-packets List only the sequence of packets. This is mainly useful for debugging. ¦C¥X½s½X«Ê¥]ªº½s½X¯ßµ¸¡C¥»«ü¥O¦b°£¿ù®É¬Û·í¦³¥Î¡C --gen-key Generate a new key pair. This command is normally only used interactively. ²£¥Í¤@Âù·sªºÆ_°Í¹ï¡C³o­Ó«ü¥O³q±`¥u³Q¥Î©ó¨Ï¥ÎªÌ»P ¹q¸£ªº¹ï¸Ü¼Ò¦¡¡C(Ķ«ö¡G¥»¥yͤå¥i¯à¦³»~¡A½Ð¥H­ì¤å ¬°¾Ú¡C­ì·N¥i¯à·N«ü¥»©R¥O«D¥Î©ó§å¦¸§@·~¡C) There is an experimental feature which allows you to create keys in batch mode. See the file doc/DETAILS in the source distribution on how to use this. ¥t¥~¦³¤@­Ó¹êÅ礤ªº¥\¯àÅý§A¥i¥H¥Î§å¦¸§@·~¨Ó²£¥ÍÆ_ °Í¹ï¡C½Ð¾\Ū­ì©l½X¤¤ doc/DETAILS ¨Ó¤F¸Ñ¦p¦ó±q¨Æ³o ¶µ§@·~¡C --edit-key name Present a menu which enables you to do all key related tasks: ¦b²{¦³ªº¥\¯àªí¤¤¡A¦³¤U¦C»PÆ_°Í¹ï¬ÛÃöªº¤u§@¡G sign Make a signature on key of user name If the key is not yet signed by the default user (or the users given with -u), the program displays the information of the key again, together with its fingerprint and asks whether it should be signed. This question is repeated for all users specified with -u. ¹ï¤@­Ó¨Ï¥ÎªÌªºÆ_°Í§@ñ¸p¡A¦pªG¸ÓÆ_°Í¥¼ÁÙ ¥¼³Q¤º©w¨Ï¥ÎªÌñ¸p (©Î¬O¥Ñ -u ©Ò«ü©wªº¨Ï ¥ÎªÌ)¡Aµ{¦¡±N¦A¤@¦¸Åã¥Ü¸ÓÆ_°Íªº¸ê°T»P«ü¯¾ ½X¡A¨Ã¥B¸ß°Ý¬O§_»Ý¹ï¸ÓÆ_°Í§@ñ¸p¡A¸ß°Ý·| ¤@ª½­«ÂЦܩҦ³ -u «ü©wªº¨Ï¥ÎªÌµ²§ô¡C lsign Same as --sign but the signature is marked as non-exportable and will therefore never be used by others. This may be used to make keys valid only in the local environment. §@¥Î¦p --sign ¤@¯ë¡A¦ýñ¸p·|¼Ð°O¬°µLªk¿é ¥X¡A¥B±N¤£·|³Q¨ä¥L¨Ï¥ÎªÌ¨Ï¥Î¡C³o¥i¥Î¨Ó¨Ï Æ_°Í¶È¥i¹B¥Î©ó°Ï°ìÀô¹Ò¤º¡C revsig Revoke a signature. GnuPG asks for every signature which has been done by one of the secret keys, whether a revocation certificate should be generated. ¼o°£¤@­Óñ¸p¡C¨C¤@­Ó¸g¥Ñ¨pÆ_©Ò§¹¦¨ªºÃ±¸p GnuPG ³£·|¤@¤@¸ß°Ý¡A¬O§_¨C­Ó¼o°£ÃÒ©ú³£­n ³Q²£¥Í¡C trust Change the owner trust value. This updates the trust-db immediately and no save is required. §ó§ï¾Ö¦³ªÌ«H¥ô­È¡C³o­Ó°Ê§@±N·|¥ß§Y§ó·s«H ¥ô¸ê®Æ®w¦Ó¤£¶·¥t°µÀx¦s¡C disable enable Disable or enable an entire key. A disabled key can normally not be used for encryption. ¤W­±ªº°±¥Î»P¦¹³Bªº±Ò¥Î¥\¯à¡A¬O¹ï¤@­Ó§¹¾ã ªºÆ_°Í§@¥Î¡C³Q°±¥ÎªºÆ_°Í¨ä³q±`±NµLªk¦A³Q ¥Î¨Ó°µ¬°½s½X¥[±Kªº¨Ì¾Ú¡C adduid Create an alternate user id. ¼W¥[¤@­Ó´À¥Nªº¨Ï¥ÎªÌ¦WºÙ¡C deluid Delete a user id. §R°£¤@­Ó¨Ï¥ÎªÌ¦WºÙ¡C addkey Add a subkey to this key. ¼W¥[¤@­Ó°ÆÆ_¦Ü¸ÓÆ_°Í¡C delkey Remove a subkey. ²¾°£¤@­Ó°ÆÆ_¡C revkey Revoke a subkey. ¼o°£¤@­Ó°ÆÆ_¡C expire Change the key expiration time. If a key is selected, the time of this key will be changed. With no selection the key expiration of the primary key is changed. §ó§ïÆ_°Íªº¨Ï¥Î´Á­­¡C¦pªG¦³¯S©wªºÆ_°Í³Q¿ï ¾Ü¡A«h¸ÓÆ_°Íªº¨Ï¥Î´Á­­·|§ó°Ê¡F­Y¥¼¿ï¾Ü¯S ©wªºÆ_°Í¡A¨º»ò´N¬O¥DÆ_°Íªº®É­­·|³Q§ó§ï¡C passwd Change the passphrase of the secret key. §ó§ï¯µÆ_ªº±K½X¡C uid n Toggle selection of user id with index n. Use 0 to deselect all. ¥H§Ç¸¹ n ¨Ó¿ï¨ú¨Ï¥ÎªÌ¦WºÙ¡C¨Ï¥Î§Ç¸¹ 0 ¨Ó ¨ú®ø©Ò¦³¤w¿ï¨úªº¨Ï¥ÎªÌ¡C key n Toggle selection of subkey with index n. Use 0 to deselect all. ¥H§Ç¸¹ n ¨Ó¿ï¨ú°ÆÆ_¡C­Y¨Ï¥Î§Ç¸¹ 0 «h¨ú®ø ­ì¥ý©Ò¦³¤w¿ï¨úªº³¡¤À¡C check Check all selected user ids. Àˬd©Ò¦³³Q¿ï¨úªº¨Ï¥ÎªÌ¡C pref List preferences. ¦C¥ÜÆ_°Íªº³]©w¤º®e¡C showpref More verbose preferences listing. ¦P¤W¡A¦ý¥H¤å¦r¥N´À²Å¸¹¨ÓÅã¥Ü¤º®e¡C toggle Toggle between public and secret key listing. ¤Á´«¤½Æ_»P¨pÆ_²M³æ¡C save Save all changes to the key rings and quit. Àx¦s©Ò¦³ªº§ó°Ê¦ÜÆ_°Í°é¨Ã°h¥X¡C quit Quit the program without updating the key rings. °h¥Xµ{¦¡¨Ã¥B¤£Àx¦s¤§«eªº­×§ï¡C The listing shows you the key with its secondary keys and all user ids. Selected keys or user ids are indicated by an asterisk. The trust value is displayed with the primary key: the first is the assigned owner trust and the second is the calculated trust value. Letters are used for the values: ¶i¤J½s¿è¼Ò¦¡«á¡Aµ{¦¡·|¦C¥Ü¥X¸ÓÆ_°Í¤Î©Ò¦³¥¦ªº°ÆÆ_ »P¨Ï¥ÎªÌ¦WºÙ¡C¦b³Q¿ï¨úªº¨Ï¥ÎªÌ©ÎÆ_°Í«e·|¥H¤@­Ó¬P ¸¹¼Ð¥Ü¥X¨Ó¡C«H¥ô­È©ÒÅã¥Üªº¬O¥DÆ_ªºª¬ºA¡G²Ä¤@­Ó­È ¬OÄÝ©ó³Q«ü©w¾Ö¦³ªÌªº«H¥ô­È¡F¦Ó²Ä¤G­Ó­È¬O¸g­pºâªº «H¥ô­È¡C«H¥ô­È¥Ñ¤U¦Cªº¦r¥À¤Î²Å¸¹¨Ó¥Nªí¡C - No ownertrust assigned / not yet calculated. ¨S¦³¾Ö¦³ªÌ«H¥ô­È³Q«ü©w / ©|¥¼³Q­pºâ¸Ó­È e Trust calculation has failed; probably due to an expired key. «H¥ô­Èªº­pºâ¥¢±Ñ¡A¥i¯à¬O¦]¬°Æ_°Í¹L´Á¤F¡C q Not enough information for calculation. ¨S¦³¨¬°÷ªº¸ê°T¨Ó°µ­pºâ¡C n Never trust this key. ¤£«H¥ô¦¹Æ_°Í¡C m Marginally trusted. «j±jºâ¬O«H¥ô¡C f Fully trusted. «H¥ô¡C u Ultimately trusted. «D±`«H¥ô¡C --sign-key name Sign a public key with your secret key. This is a shortcut version of the subcommand "sign" from --edit. ¥H§Aªº¨pÆ_¹ï¤@­Ó¤½Æ_§@ñ¸p¡C³oºâ¬O¤@­Ó±¶®|¡A¥Î¨Ó ¥N´À --edit «ü¥O¤ºªº°Æ«ü¥O sign ¡C --lsign-key name Sign a public key with your secret key but mark it as non-exportable. This is a shortcut version of the subcommand "lsign" from --edit. ¥H§Aªº¨pÆ_¹ï¤@­Ó¤½Æ_§@ñ¸p¡A¦ý¥¦·|³Q°O¬°¤£¥i¿é¥X ªºÃ±¸p¡C¦p¤W¤@¯ë¥¦¤]¬O¤@­Ó --edit ªº±¶®|¡A§@¥Î¦p lsign °Æ«ü¥O¡C --trusted-key long key ID Assume that the specified key (which must be given as a full 8 byte key ID) is as trustworthy as one of your own secret keys. This option is useful if you don't want to keep your secret keys (or one of them) online but still want to be able to check the validity of a given recipient's or signator's key. °²³]³Q«ü©wªºÆ_°Í (¸ÓÆ_¥²¶·¥Ñ§¹¾ã 8byte ¨Ï¥ÎªÌ¥N¸¹ ¨Ó«ü©w) ¬O¤@­Ó¦p¦P§A¦Û¤vªº¨pÆ_¤@¼Ë¥i¥H³Q«H¿à¡C·í §A¤£Ä@·NÅý§Aªº¨pÆ_ (©Î¥ô¤@¨pÆ_) «O¯d¦b½u¤W¡A¦Ó§A ¤´§Æ±æ¯àÄ~ÄòÀˬd¦¬¥óªÌ©Îñ¸pªÌªºÆ_°Í®É¡A³o­Ó¿ï¶µ ±N·|¬Û·í¦n¥Î¡C --delete-key name Remove key from the public keyring ¦Û¤½Æ_Æ_°Í°é±N¤@§âÆ_°Í²¾°£¡C --delete-secret-key name Remove key from the secret and public keyring ¦P®É±N¤@§âÆ_°Í±q¤½Æ_¤Î¨pÆ_Æ_°Í°é¤¤²¾°£¡C --delete-secret-and-public-key name Same as --delete-key, but if a secret key exists, it will be removed first. ¥\¯à¦P --delete-key¡A¦ý­Y¬O¨pÆ_¤]¦s¦b®É«h¥ý±N¨pÆ_ ²¾°£¡C --gen-revoke Generate a revocation certificate for the complete key. To revoke a subkey or a signature, use the --edit command. ¹ï¤@§âÆ_°Í»s§@¤@­Ó¼o°£»{ÃÒ¡C¦pªG¬O­n¼o°£°ÆÆ_©Îñ ¸p¡AÀ³¨Ï¥Î --edit «ü¥O¬°¤§¡C --export [names] Either export all keys from all keyrings (default keyrings and those registered via option --keyring), or if at least one name is given, those of the given name. The new keyring is written to stdout or to the file given with option "output". Use together with --armor to mail those keys. ¿é¥X©Ò¦³¦bÆ_°Í°é¤¤ªº¤½Æ_ (¥]§t¤F¤º©wªºÆ_°Í°é©Î¬O ¥Ñ¿ï¶µ --keyring µn°OªºÆ_°Í°é)¡A©Î¿é¥X¤Þ¼Æ©Ò«ü©w ¦W¦rªº¤½Æ_¡C¿é¥XªºÆ_°Í°é·|¼g¦Ü¼Ð·Ç¿é¥X³]³Æ¡A©Î¼g ¦Ü --output ©Ò«ü©wªºÀɮפ¤¡C­Y¨Ö¥Î --armor ¥i¿é¥X ¬°¯Â¤å¦r¤º®e¥H«K¨Ï¥Î¹q¤l¶l¥ó±N¤½Æ_¶Ç¥X¡C --send-keys [names] Same as --export but sends the keys to a keyserver. Option --keyserver must be used to give the name of this keyserver. Don't send your complete keyring to a keyserver - select only those keys which are new or changed by you. §@¥Î¦p --export ¤@¯ë¡A¦ý¿é¥Xªº¤½Æ_·|¶Ç°e¦Ü¤½Æ_¦ø ªA¾¹¡C¨Ï¥Î¿ï¶µ --keyserver ¥²¶·¦P®É¨Ï¥Î¡A¨Ã«ü©w±ý ¤W¶Çªº¤½Æ_¦øªA¾¹¦WºÙ¡C½Ð¤Å¤W¶Ç§A§¹¾ãªºÆ_°Í¡A¶È»Ý °e¥X§A­×§ï¹L©Î·s²£¥ÍªºÆ_°Í§Y¥i¡C --export-all [names] Same as --export, but also exports keys which are not compatible with OpenPGP. §@¥Î¦p --export ¤@¯ë¡A¦ý·|³s¦P¤@¨Ç»P OpenPGP ¤£¬Û ®eªºÆ_°Í¤@¨Ö¿é¥X¡C --export-secret-keys [names] --export-secret-subkeys [names] Same as --export, but exports the secret keys instead. This is normally not very useful and a security risk. The second form of the command has the special property to render the secret part of the primary key useless; this is a GNU extension to OpenPGP and other implementations can not be expected to successfully import such a key. §@¥Î¦p --export Ãþ¦ü¡A¦ý¿é¥Xªº¬O¨pÆ_ªº¤º®e¡C³o­Ó «ü¥O¨Ã¤£±`¥Î¡A¦Ó¥B¦³¦w¥þ¤Wªº­·ÀI¦s¦b¡C²Ä¤G¦Cªº«ü ¥O¨ã¦³¯S®íªº¤º®e¨Ó®i²{¥DÆ_µL¥Îªº¾÷±K³¡¤À¡C(Ķ«ö¡G ¥»¥yͤå¥i¯à¦³»~¡A½Ð¥H­ì¤å¬°¾Ú¡C) ³o¬O¤@­Ó GNU ¥~¥[¦Ü OpenPGP ªº¥\¯à¡A¨Ã¥B¥»¥\¯àµLªk¹w´Á¥i¥H¦b¬Y ¨Ç¨ä¥Lªº OpenPGP µ{¦¡¤¤¡A¦¨¥\¦a±N¨pÆ_¿é¤J¡C --import [files] --fast-import [files] Import/merge keys. This adds the given keys to the keyring. The fast version does not build the trustdb; this can be done at any time with the command --update-trustdb. ¦¹³B¨â­Ó«ü¥O¥Î¨Ó±NÆ_°Í (͵ù¡G§t¤½Æ_»P¨pÆ_¡A¦pªG ¨pÆ_¦s¦bªº¸Ü) ¥[¤JÆ_°Í°é¡C§Ö³t¼Ò¦¡(--fast-import) ªº§@¥Î·|¤Ö¤F«H¥ô¸ê®Æªº«Ø¥ß¡F«H¥ô¸ê°T¥i¥HÀH®É¥H«ü ¥O --update-trustdb ¨Ó¥[¤J¡C There are a few other options which control how this command works. Most notable here is the --merge-only option which does not insert new keys but does only the merging of new signatures, user-IDs and subkeys. See also the option --allow-secret-key-import. ¥t¥~ÁÙ¦³¤@¨Ç¨ä¥Lªº¿ï¶µ¯à±±¨î¥»«ü¥Oªº¹B§@¡C¦b³oùØ ¤ñ¸ûÅãµÛªº¨Ò¤l¬O --merge-only ¿ï¶µ¡A¥¦±N·|¨Ï¿é¤J ªº¤º®e¤£§t·sÆ_°Í¡A¦Ó¥u¿é¤J·sªºÃ±¸p¡B¨Ï¥ÎªÌ¦WºÙ¡B °ÆÆ_µ¥¤º®e¡C½Ð¦P®É°Ñ¦Ò --allow-secret-key-import ¿ï¶µ¡C --recv-keys key IDs Import the keys with the given key IDs from a HKP keyserver. Option --keyserver must be used to give the name of this keyserver. ±q HKP ¤½Æ_¦øªA¾¹¤W¤U¸ü¤@­Ó¨Ï¥ÎªÌªºÆ_°Í¡C¦¹¨è¶·¦P ®É¨Ï¥Î --kerserver ¿ï¶µ¡A¨Ãµ¹©w¤@©w±ý³s±µªº¤½Æ_¦ø ªA¾¹¦WºÙ¡C --export-ownertrust List the assigned ownertrust values in ASCII format for backup purposes. ¦C¥X³Q«ü©wªº¾Ö¦³ªÌ«H¥ô­È¬°¤å¦r®æ¦¡¡A¥H§Q©ó³Æ¥÷®É ¨Ï¥Î¡C(͵ù¡G¥¦·|¿é¥X¦Ü¼Ð·Ç¿é¥X³]³Æ¡A¥i°t¦X --output ¨Ï¥Î¼g¦ÜÀɮסC) --import-ownertrust [files] Update the trustdb with the ownertrust values stored in files (or stdin if not given); existing values will be overwritten. ±q¤Þ¼ÆªºÀɮ׿é¤J (­Y¨S¦³«ü©wÀɮ׫h¦Û¼Ð·Ç¿é¤J³]³Æ ¿é¤J) ¾Ö¦³ªÌ«H¥ô­È¡A§ó·s«H¥ô¸ê®Æ¡F¦pªG«H¥ô­È¤w¸g ¦s¦b®É¡A«h²{¦s­È±N·|³QÂмg¡C --print-md algo [files] Print message digest of algorithm ALGO for all given files of stdin. If "*" is used for the algorithm, digests for all available algorithms are printed. ¥H ALGO ©Ò«ü©wªººtºâªk¡A­pºâ¥XÀɮתº«H®§ºK­n­È¦C ¥X¡C¦pªG "*" ¨ú¥N¤Þ¼Æ ALGO ®É¡A«h«H®§ºK­n­È·|¥H©Ò ¦³¥i¥Îªººtºâªk¨Ó­pºâ¨Ã¦C¥X¡C(͵ù¡G¾Ú¹ê»Ú¦b NT »P Win98 ªº DOS µøµ¡¤¤¨Ï¥Îªº¸gÅç¡A»P¦Û GnuPG mailing list ©Ò±o¨ìªºµª®×¡A¥i¥H¨Ï¥Îªº¤è¦¡¦p¤U¡G --print-mds [files] --print-md "*" [files] ¤W¦C¨âºØ¬Ò¥i¥H¥¿½T¨Ï¥ÎµL»~¡C¦Ü©ó¦b Linux Àô¹Ò¤U°£ ¤W¦C Win32 ªº¨âºØ¤§¥~¡AÁÙ¥i¨Ï¥Î¦p¤U¤è¦¡¡G --print-md '*' [files] --print-md \* [files] ¦Ü©ó¨ä¥L¥­¥x½Ð¦Û¦æ´ú¸Õ¡C) --gen-random 0|1|2 [count] Emit COUNT random bytes of the given quality level. If count is not given or zero, an endless sequence of random bytes will be emitted. PLEASE, don't use this command unless you know what you are doing; it may remove precious entropy from the system! ¥H¤Þ¼Æ©Ò«ü©wªºµ¥¯Å¨Ó´²µo¶Ã¼Æ­p¼Æ¦ì¤¸²Õ¡C¦pªG¤Þ¼Æ ¬°¹s©Î¥¼«ü©w¡A«h¤@²ÕµL½aªº¶Ã¼Æ­p¼Æ¦ì¤¸²Õ¼Æ¦C±N³Q ´²µo¡C ½Ðª`·N¡G°£«D«Ü²M·¡¥»«ü¥Oªº¥Î³~¡A§_«h½Ð¤Å¨Ï¥Î¡F¥¦ ¥i¯à¦Û¨t²Î±N­ì¦³ªº¤@­P©Ê²¾°£¡C(Ķ«ö¡G¥»¬q½Ķ¥i¯à ¦³»~¡A½Ð¥H­ì¤å¬°¾Ú) --gen-prime mode bits [qbits] Use the source, Luke :-). The output format is still subject to change. ¾\Ū­ì©l½X§a¡C¿é¥X®æ¦¡ÁÙ·|§ïÅÜ¡C (ĶªÌ¥Ø«e¤£©ú¥Õ¥»¬q¤º®e¡C¤U¤è¬OĶªÌ±o¦Û GPG mailing list ªºµª®×¡A¥H¤U¤º®e¬O¥Ñ John Kane [jkane89@softhome.net] ©ÒµªÂСC) ===== BEGIN of John Kane's answer about PRIME ===== Yes, this is not written well, and you should re-write it instead of trying to translate it. This command is experimental. ¨S¿ù¡A³o³¡¤À¼gªº¤£¬O«Ü¦n¡A§A¥i¯à»Ý­n§ï¼g¥¦¦Ó¤£¬O¸ÕµÛª½±µ ½Ķ³o³¡¤À¡C³o¬O­Ó¹êÅ礤ªº¿ï¶µ¤£¾A¥Î©ó¤@¯ëªº¨Ï¥ÎªÌ¡C If you set 'mode' to be 1, it generates or calculates a large prime number. 'Bits' is the size. If 'mode' is 2, 'qbits' is the length of a short prime; gnupg makes a big prime 'p' and a small prime 'q', then multiplies p*q and shows the result. ¦pªG±N 'mode' ³]¬° 1¡A«h·|²£¥Í©Î­pºâ¥X¤@­Ó¤jªº½è¼Æ¡F 'bits' ¬O¼Æªº¤j¤p¡F'qbits' ¬O½è¼Æªºªø«×¡C¦pªG 'mode' ¬° 2¡AGnuPG ·|»s§@¤@­Ó¤jªº½è¼Æ 'p' ©M¤@­Ó¤pªº½è¼Æ 'q'¡AµM«á ¥H p*q ¼W­È¨Ã¦^Âе²ªG¡C Try " --gen-prime 1 300 " and " --gen-prime 2 300 50 ". ¥i¥H¸Õ¸Õ "--gen-prime 1 300" ©M "--gen-prime 2 300 50" --gen-prime n p_bits [q_bits] When n is 1, this makes a large prime P. When n is 2, makes two primes, one 'p_bits' long, the other 'q_bits' long, calculates P*Q and prints the result. This command is experimental; it may change in later version of gnupg. ·í n ¬° 1 ®É¡Aµ{¦¡·|²£¥Í¤@­Ó¤jªº½è¼Æ¡C·í n ¬° 2 ®É¡Aµ{¦¡·|²£¥Í¨â­Ó½è¼Æ¡F¤@­Óªø«×¬° p_bits¡F¥t¤@ ­Óªø«×¬° q_bits¡A­pºâ P ­¼ Q ¨Ã¦C¥Xµ²ªG¡C ³o¬O¤@­Ó¹êÅ礤ªº¿ï¶µ¡A¦b¥¼¨Óªºª©¥»¥i¯à·|°µ­×§ï¡C (Ķ«ö¡G¥»¬q¤º®e¥Ñ John Kane §ï¼g¡A´£¨Ñ¤j®a°Ñ¦Ò¡C ­ì©lªº¦^ÂÐÁÙ¥]§t John ¹ï man page ªº¤@¨Ç¬Ýªk¡A¦] ¬°»P¥»¬qµLÃö¦Ó²¤¥h¡C¶È¦b¦¹¹ï¥L»¡Án©êºp¡A¨Ã¥B«D±` ·PÁ John Kane[jkane89@softhome.net] ªº¸Ñ»¡¡I) I am very appreciate John Kane's answer. Thanks! ===== END of John Kane's answer about PRIME ===== --version Print version information along with a list of supported algorithms. ¦C¥Üª©¥»¸ê°T¥H¤Î³Q¤ä´©ªººtºâªk¡C --warranty Print warranty information. Åã¥Ü±ÂÅv¸ê°T¡C -h, --help Print usage information. This is a really long list even though it doesn't list all options. Åã¥Ü¨Ï¥ÎªÌ¨D§U¸ê°T¡C§Y¨Ï¦¹³B©ÒÅã¥Üªº¨Ã¤£¬O©Ò¦³ªº ¿ï¶µ¡A¥¦¨Ì¬O¤@¥÷¬Û·íªøªº¦Cªí¡C OPTIONS ¿ï¶µ Long options can be put in an options file (default "~/.gnupg/options"). Do not write the 2 dashes, but simply the name of the option and any required arguments. Lines with a hash as the first non-white-space character are ignored. Commands may be put in this file too, but that does not make sense. ¥H§¹¾ã¤å¦r (͵ù¡G«D²¼g«ü¥O¡A¦ý¥\¯à»P²¼g«ü¥O¬Û¦P) ©Òªí ¥Ü¤§¿ï¶µ¡A¥i¥H¥Î©ó¿ï¶µÀɤ¤ (¹w³]¬°¡§~/.gunpg/options¡¨¡A ͵ù¡G¦b Win32 ªºª©¥»¤¤¡A¹w³]¬° C:\GNUPG\options)¡C¦b±N¿ï ¶µ¥[¤J¿ï¶µÀɮɡA¶È»Ý¼g¤J¿ï¶µ«ü¥O¦WºÙ¥H¤Î¸Ó«ü¥O©Ò»Ýªº¤Þ¼Æ §Y¥i¡A¦Ó¤£¥Î§â¨â­Ó´î¸¹ (--) ¤]¥[¤J¡C¨C¦æ²Ä¤@­Ó«DªÅ¥Õ¦r¤¸ ­Y¬° "#" ²Å¸¹®É¡A«h¸Ó¦æ·|³Q©¿²¤¡C«ü¥O¥ç¥i¥[¤J¿ï¶µÀɤ¤¨Ó¨Ï ¥Î¡A¦ý³o»ò°µ¨S¤°»ò·N¸q´N¬O¤F¡C gpg recognizes these options: GPG ¯àÃѧOªº¿ï¶µ¦p¤U¡G -a, --armor Create ASCII armored output. ±N«OÅ@ªº°T®§¥H ASCII ¤å¦r®æ¦¡¿é¥X¡C -o, --output file Write output to file. ±N¿é¥Xªº¤º®e¼g¦Ü¤Þ¼Æ©Ò«ü©wªºÀɮפ¤¡C -u, --local-user name Use name as the user ID to sign. This option is silently ignored for the list commands, so that it can be used in an options file. ¥H¤Þ¼Æªº¨Ï¥ÎªÌ¦WºÙ°µ¬°¨Ï¥ÎªÌªº¨­¥÷¨Óñ¸p¡C³o­Ó¿ï ¶µ¦b¦³Ãö¦C¥Üªº«ü¥O®É·|³QÀqÀq¦a©¿²¤¡A©Ò¥H¥¦¥i¥H³Q ¥Î¨Ó©ñ¦b¿ï¶µÀɤ¤¡C --default-key name Use name as default user ID for signatures. If this is not used the default user ID is the first user ID found in the secret keyring. ±N¨Ï¥ÎªÌ¦WºÙ³]¬°¦bñ¸p®Éªº¹w³]¨Ï¥ÎªÌ¡C¦pªG³o­Ó¨Ï ¥ÎªÌ¦WºÙ¡A¤£¬O¦b¨pÆ_°Í°é¤¤ªº²Ä¤@­Ó¨Ï¥ÎªÌ®É¡A¥i¥H ¥»¿ï¶µ³]©w¬°¹w³]¨Ï¥ÎªÌ¡C -r, --recipient name Encrypt for user id name. If this option is not specified, GnuPG asks for the user-id unless --default-recipient is given ±N¤Þ¼Æ¤¤ªº¨Ï¥ÎªÌ³]¬°¦¬¥óªÌ¤§¤@¡A°T®§±N¥H¨ä¤½Æ_¨Ó ¥[±K¡C°£«D¹w³]¦¬¥óªÌ (--default-recipient) ¤w³Q³] ©w¡A§_«h¥»¿ï¶µ¥¼³Q¨Ï¥Î®É¡A¨º»ò GnuPG ·|½Ð¨D¿é¤J¦¬ ¥óªÌ¦WºÙ¡C --default-recipient name Use name as default recipient if option --recipient is not used and don't ask if this is a valid one. name must be non-empty. ¦pªG --recipient ¥¼³Q³]©w©Î«ü¥X¡A«h¤Þ¼Æ¤¤ªº¨Ï¥ÎªÌ ±N³]¬°¤º©w¦¬¥óªÌ¡A¦Ó¥»¿ï¶µªº¤Þ¼Æ­Y¬°¤@­Ó¦s¦b¥B¥i ¥Îªº¦WºÙ®É¡Aµ{¦¡¤£·|­n¨D¿é¤J¦¬¥óªÌªº¦WºÙ¡C --default-recipient-self Use the default key as default recipient if option --recipient is not used and don't ask if this is a valid one. The default key is the first one from the secret keyring or the one set with --default-key. ¨Ï¥Î¹w³]¤½Æ_¬°¤º©w¦¬¥óªÌ¡A­Y --recipient ¥¼³Q³]©w ©Î«ü¥X¡A¥B¦¹¬°¤@¥i¥Îªº¦WºÙ®É¡A«hµ{¦¡±N¤£¸ß°Ý¤]¤£ ­n¨D¿é¤J¨Ï¥ÎªÌ¦WºÙ¡C¹w³]¤½Æ_¬O¦b¨pÆ_°Í°é¤¤ªº²Ä¤@ ­Ó¨Ï¥ÎªÌ¦WºÙ¡A©Î¬O¥H --default-key ¿ï¶µ³Q³]¬°¤º©w ¨Ï¥ÎªÌ¡C --no-default-recipient Reset --default-recipient and --default- recipient-self. ­«·s³]©w¹w³]¦¬¥óªÌ (--default-recipient) ©M¨t²Î¹w ³]¦¬¥óªÌ (--default-recipient-self)¡C --encrypt-to name Same as --recipient but this one is intended for use in the options file and may be used with your own user-id as an "encrypt-to-self". These keys are only used when there are other recipients given either by use of --recipient or by the asked user id. No trust checking is performed for these user ids and even disabled keys can be used. §@¥Î¦p --recipient ¤@¼Ë¡A¦ý¥»¿ï¶µªº¥Î·N¦b©ó¥[¤J¿ï ¶µÀɤ¤¨Ó¨Ï¥Î¡A¥H¤Î¨Ï¥Î¦b¥H±z­Ó¤Hªº¨Ï¥ÎªÌ¦WºÙ¨Ó¥[ ±Kªº³õ¦X¡C·í¦³¨ä¥Lªº¦¬¥óªÌ¦WºÙ³Q«ü©w®É (¤£½×¬O¥Ñ --recipient ©Ò³]©w¡A©Î¬O¥Ñµ{¦¡­n¨D¿é¤JªÌ) ¡A³o¨Ç ¤½Æ_·|¦b¦¹®É¦³§@¥Î¡C¦b¥»¿ï¶µ©Ò«ü©wªº¨Ï¥ÎªÌ±N¤£·| °µ«H¥ôÀˬd¡A¦Ó¥B§Y¨Ï¬O°±¥Îªº¤½Æ_¤´Â¯à³Q¨Ï¥Î¡C --no-encrypt-to Disable the use of all --encrypt-to keys. °±¥Î --encrypt-to ¿ï¶µ©Ò«ü©wªºÆ_°Í¡C -v, --verbose Give more information during processing. If used twice, the input data is listed in detail. ¥i¨Ïµ{¦¡¦b³B²z¹Lµ{¤¤Åã¥Ü§ó¦hªº°T®§ (Ķ«ö¡G¥H¨Ñ¨Ï ¥ÎªÌ°Ñ¦Ò) ¡C¦pªG¥»¿ï¶µ­«ÂШϥΨ⦸«h·|¦C¥X§ó¸Ô²Ó ªº¸ê°T¡C -q, --quiet Try to be as quiet as possible. ¸ÕµÛ¾¨¥i¯à¤£¿é¥X°T®§¡C -z n Set compression level to n. A value of 0 for n disables compression. Default is to use the default compression level of zlib (normally 6). ³]©wÀ£ÁYµ¥¯Å¬° n¡A¦Ó·í n ªº­È¬° 0 ®É«h¤£À£ÁY¡C¹w ³]­È¬°¨Ï¥Î zlib ªºÀ£ÁYµ¥¯Å (³q±`¬° 6)¡C -t, --textmode Use canonical text mode. If -t (but not --textmode) is used together with armoring and signing, this enables clearsigned messages. This kludge is needed for PGP compatibility; normally you would use --sign or --clearsign to selected the type of the signature. ¨Ï¥Î¼Ð·Ç¤å¦r¼Ò¦¡¡C¦pªG¨Ï¥Î -t (ª`·N¡I¤£¬O -textmode) ¿ï¶µ¨Ã¦P®É¥Î¤F¤å¦r½s½X¥H¤Îñ¸pµ¥¿ï¶µ¡A «h¥»¿ï¶µ·|±Nñ¸p¸ê®Æª½±µ¥[¤J°T®§¤§¤¤¡A¦p¨Ï¥Î clearsign ¤@¯ë¡C¬°¤F­n»P PGP ¬Û®eªº­ì¬G¡A³oºØ«÷´ê ªº°µªk¬O¥²¶·ªº¡F³q±`§Ú­Ì·|¿ï¥Î --sign ©ÎªÌ¬O --clearsign ¨Ó¨M©wñ¸pªº«¬ºA¡C -n, --dry-run Don't make any changes (this is not completely implemented). ¤£°µ¥ô¦ó§ïÅÜ¡C(¥»¿ï¶µ©|¥¼§¹¦¨) -i, --interactive Prompt before overwriting any files. ·í­n¹ï¥ô¦óÀÉ®×°µÂмg«e¥ýÅã¥Ü´£¥Ü»y¡C --batch Use batch mode. Never ask, do not allow interactive commands. ¨Ï¥Î§å¦¸ºN¦¡¡C¤£¥Î°Ý¤F¡A¥¦¤£¤ä´©¥æ½Í¼Ò¦¡ªº©R¥O¡C --no-tty Make sure that the TTY (terminal) is never used for any output. This option is needed in some cases because GnuPG sometimes prints warnings to the TTY if --batch is used. ±j¨î¤£±N¿é¥Xµ²ªG°e¨ì TTY (²×ºÝ¾÷)¡C¥»¿ï¶µ¦b¬Y¨Ç®É ­Ô¬O¥²¶·ªº¡A¦]¬° GnuPG ¦b¨Ï¥Î§å¦¸¼Ò¦¡ (--batch) ®É¡A¥i¯à·|¶Ç°e¤@¨Çĵ»y¨ì²×ºÝ¾÷¤W¡C --no-batch Disable batch mode. This may be of use if --batch is enabled from an options file. °±¥Î§å¦¸¼Ò¦¡¡C³o­Óªº¨Ï¥Î®É¾÷¬O·í¤w¸g¨Ï¥Î§å¦¸¼Ò¦¡ (--batch) ¦b¿ï¶µÀɤ¤®É¡C --yes Assume "yes" on most questions. °²³]©Ò¦³»Ý­n¦^À³ªºµªÂЬҬ° "¬O"¡C --no Assume "no" on most questions. °²³]©Ò¦³»Ý­n¦^À³ªºµªÂЬҬ° "§_"¡C --always-trust Skip key validation and assume that used keys are always fully trusted. You won't use this unless you have installed some external validation scheme. ¬Ù²¤Æ_°Íªº½T»{°Ê§@¡A¨Ã°²³]©Ò¦³¨Ï¥ÎªºÆ_°Í³£¬O¥i¥H ³Q§¹¥þ«H¥ôªº¡C°£«D§A¤w¸g¦w¸Ë¤F¨ä¥L¥~³¡ªº½T»{¤u¨ã µ{¦¡¡A§_«h§AÀ³¸Ó¥Î¤£¨ì³o­Ó¿ï¶µ¡C --keyserver name Use name to lookup keys which are not yet in your keyring. This is only done while verifying messages with signatures. The option is also required for the command --send-keys to specify the keyserver to where the keys should be send. All keyservers synchronize with each other - so there is no need to send keys to more than one server. Using the command "host -l pgp.net | grep wwwkeys" gives you a list of keyservers. Because there is load balancing using round- robin DNS you may notice that you get different key servers. ·í¬Y­Ó¨Ï¥ÎªÌÁÙ¤£¦b§AªºÆ_°Í°é¤¤®É¡A¦¹¿ï¶µ¥i¥H¨Ï¥Î ªÌ¦WºÙ¥h§ä¤½Æ_¨Ó¨Ï¥Î¡C³o¿ï¶µ¶È¦b°µÅçÃÒ°T®§»Pñ¸p ®É¥i¥Î¡C·í¨Ï¥Î¤F¶Ç°e¤½Æ_ (--send-keys) ¿ï¶µ®É¡A¦¹ ¿ï¶µ¤]¦P®É»Ý­n¡A¨Ã¥B¬O¥Î¨Ó«ü©w¤½Æ_¦øªA¾¹¡A¨Ï¤½Æ_ ¥i¥H³Q¶Ç°e¨ì¥¿½Tªº¦øªA¾¹¤W¡C©Ò¦³ªº¤½Æ_¦øªA¾¹·|¬Û ¤¬°µ¸ê®Æ¦P¨B¡A©Ò¥H¨Ã¤£»Ý­n±N¤½Æ_¶Ç°e¨ì¶W¹L¤@­Ó¥H ¤Wªº¦øªA¾¹¤W¡C§A¥i¥H¨Ï¥Î«ü¥O host -l pgp.net | grep wwwkeys ¨Ó±o¨ì¤½Æ_¦øªA¾¹ªº¦Cªí¡A¦]¬°­t¸ü¥­¿Å¨Ï¥Î´`Àô¦¡ DNS ªº½t¬G¡A§A¥i¯à·|µo²{§A·|±o¨ì¤£¦P¤½Æ_¦øªA¾¹ªº ¦Cªí¡C --no-auto-key-retrieve This option disables the automatic retrieving of keys from a keyserver while verifying signatures. This option allows you to keep a keyserver in the options file for the --send- keys and --recv-keys commands. ·íñ¸pªºÅçÃҰʧ@¦b¶i¦æ®É¡A¦¹¿ï¶µ¬O±N¦Û°Ê±q¤½Æ_¦ø ªA¾¹¤U¸ü¤½Æ_ªº¥\¯à°±¥Î¡C¦¹¿ï¶µ¤¹³\§A«O¯d¤½Æ_¦øªA ¾¹¦b¿ï¶µÀɤ¤¡A¥H§Q¶Ç°e¤½Æ_ (--send-keys) ©M¤U¸ü¤½ Æ_ (--recv-keys) ¨â­Ó¿ï¶µ¨Ï¥Î¡C --honor-http-proxy Try to access the keyserver over the proxy set with the variable "http_proxy". ¹Á¸Õ³z¹L¥N²z¦øªA¾¹¨Ó³s±µ¤½Æ_¦øªA¾¹¡A¨ä¤¤¥N²z¦øªA ¾¹¬O¥Ñ "http_proxy" Åܼƨӳ]©w¡C --keyring file Add file to the list of keyrings. If file begins with a tilde and a slash, these are replaced by the HOME directory. If the filename does not contain a slash, it is assumed to be in the home-directory ("~/.gnupg" if --homedir is not used). The filename may be prefixed with a scheme: "gnupg-ring:" is the default one. "gnupg-gdbm:" may be used for a GDBM ring. Note that GDBM is experimental and likely to be removed in future versions. ¥[¤J¤@­ÓÀɮר줽Æ_°Í°é¤¤¡C¦pªG¤Þ¼Æ "file" ¥Ñ¡ã©Î ¡þ²Å¸¹°_©l®É¡A¨º»ò¥¦­Ì·|¥H®a¥Ø¿ý (home) ¨Ó¨ú¥N¡C (Ķ«ö¡GWin32 ¨t²ÎÁö¦³Ãþ¦ü®a¥Ø¿ýªº³]©w¡Ð¦b \WINxx\Profiles\username¡Ð«o¤£§¹¥þ»P unix ¨t²Î¬Û ¦P¡A¥Ø«eĶªÌ©|¥¼´ú¸Õ¥»¿ï¶µªº¹ê»Ú¨Ï¥Îµ²ªG¡C) ¦pªG ÀɦW¤£¥]§t¡þ²Å¸¹¡A¥¦±N³Q°²³]¬°¦b®a¥Ø¿ý¤¤ ("~/.gnupg" ¦pªG --homedir ¥¼³Q³]©w¨Ï¥Î¡C) ÀɦW·| ¦³¤@«e¸m¦rªº°t¦X¡G "gnupg-ring:" ¬O¹w³]­È¡C "gnupg-gdbm:" ¥i³Q¥Î¨Ó°µ¬° GDBM Æ_°Í°é¡C½Ðª`·N GDBM ¬O¤@­Ó¹êÅç¿ï¶µ¡A¦Ó¥B¥i¯à·|¦b¥¼¨Óªºª©¥»¤¤·|²¾ °£¡C(Ķ«ö¡G¥»¬q½Ð°Ñ¦Ò­ì¤å¥H±o¥¿½T·N¸q¡C) It might make sense to use it together with --no-default-keyring. ¦¹¿ï¶µ¤]¥i»PµL¹w³]¤½Æ_°Í°é (--no-default-keyring) ¨Ö¥Î¡C --secret-keyring file Same as --keyring but for the secret keyrings. ¦P«e --keyring ¥Îªk¡A¤£¹L¦b¦¹¥Î©ó³B²z¨pÆ_°Í°é¡C --homedir directory Set the name of the home directory to directory If this option is not used it defaults to "~/.gnupg". It does not make sense to use this in a options file. This also overrides the environment variable "GNUPGHOME". ³]©w¤Þ¼Æ¬°®a¥Ø¿ý¦WºÙ¡C¦ý¬O¦pªG³o­Ó¿ï¶µ¤£³Q¨Ï¥Î¦b ¹w³]¥Ø¿ý "~/.gnupg" (Ķ«ö¡GWin32 ¬° C:\gnupg ©Î¬O ¦b registry ¤¤©Ò³]ªº homedir) ªº¿ï¶µÀɤ¤¡A¨º»ò¥¦ ¹ê¦b¨S¤°»ò·N¸q¡C¦¹¿ï¶µ·|Âл\Àô¹ÒÅÜ¼Æ "GNUPGHOME" ©Ò³]ªº­È¡C --charset name Set the name of the native character set. This is used to convert some strings to proper UTF-8 encoding. Valid values for name are: ³]©w¥»¦a¦r¤¸¶°¡C³o¬O¥Î¨Ó±N¬Y¨Ç¦r¦êÂà´«¬°¾A·íªº UTF-8 ½s½X¡C¥i¥Î¥H°µ¬°¤Þ¼Æªº­È¦³¡G iso-8859-1 This is the default Latin 1 set. ³o¬O¹w³]ªº©Ô¤B¦r¶°¤@¡C iso-8859-2 The Latin 2 set. ©Ô¤B¦r¶°¤G¡C koi8-r The usual Russian set (rfc1489). ³q¥Î«Xù´µ¦r¶° (RFC1489)¡C utf-8 Bypass all translations and assume that the OS uses native UTF-8 encoding. ¬Ù²¤©Ò¦³ªºÂà½X¤u§@¨Ã°²³]§@·~¨t²Î¨Ï¥Î¤F¥» ¦a¦r¶°ªº UTF-8 ½s½X¡C --utf8-strings --no-utf8-strings Assume that the arguments are already given as UTF8 strings. The default (--no-utf8-strings) is to assume that arguments are encoded in the character set as specified by --charset. These options affect all following arguments. Both options may be used multiple times. °²³]¤Þ¼Æ¤w¸g¥H UTF8 ³]©w¦n¤F¡C¹w³]­È (--no-utf8-strings) ¬O°²³]¤Þ¼Æ¤º®e¤w¥Î --charset ¿ï¶µ±N¦r¤¸¶°³]©w¦n¡A©Ò¦³¦b¥»¿ï¶µ«áªº¤Þ¼Æ³£±N·|¨ü ¨ì¼vÅT¡A¤W¦Cªº¨â­Ó¿ï¶µ³£¥i¥H³Q¦h¦¸¨Ï¥Î¡C --options file Read options from file and do not try to read them from the default options file in the homedir (see --homedir). This option is ignored if used in an options file. ¦Û¤Þ¼Æ©Ò«ü©wªºÀÉ®×Ū¨ú¿ï¶µ³]©w¡A¨Ã¥B¸ÕµÛ¤£¦Û¹w³] ªº¥Ø¿ý (°Ñ¦Ò --homedir ¿ï¶µ) Ū¨ú¿ï¶µÀɤº®e¡C·í³o ­Ó¿ï¶µ³Q¨Ï¥Î¦b¤@­Ó¿ï¶µÀɤ¤®É¥¦±N·|³Q©¿²¤¡C --no-options Shortcut for "--options /dev/null". This option is detected before an attempt to open an option file. ¥»¿ï¶µ¬O "--options /dev/null" ªº±¶®|¡C³o¬O¥Î¨ÓÁ× §KŪ¨ú¿ï¶µÀɪº¤èªk¡C --load-extension name Load an extension module. If name does not contain a slash it is searched in "/usr/local/lib/gnupg" See the manual for more information about extensions. ¸ü¤J¤@­Ó©µ¦ù¼Ò²Õ¡C¦pªG¼Ò²Õ¦WºÙ¤£¥]§t±×½u¦r¤¸ (Ķ «ö¡G«ü unix ¨t²Îªº®Ú¥Ø¿ý "/") ®É¡A«h·j´Mªº¸ô®|·| ±q "/usr/local/lib/gnupg" (Ķ«ö¡GWin32 ª©¥»À³¸Ó¬O ±q "C:\gnupg"¡AĶªÌ¥¼°µ¹L´ú¸Õ¡A½Ð¦Û¦æ¸Õ¥Î¡C) ¶}©l ¡A½Ð°Ñ¾\¨Ï¥Î¤â¥U¨Ó¤F¸Ñ§ó¦h¦³Ãö©µ¦ù¼Ò²Õªº¸ê°T¡C --debug flags Set debugging flags. All flags are or-ed and flags may be given in C syntax (e.g. 0x0042). ³]©w°£¿ùºX¼Ð¡C©Ò¦³ªººX¼Ð¥H OR ¹Bºâ¡A¦ÓºX¼Ð¥i§Q¥Î C ªº»yªkµ¹©w (¨Ò¦p¡G0x0042)¡C(Ķ«ö¡G¥Ñ©óĶªÌ¤£¿Ú µ{¦¡»y¨¥¡A¥»¬qͤå±N¦³»~ÂÕ¡A½Ð°Ñ¦Ò­ì¤å¥H¬°®Ö¡C) --debug-all Set all useful debugging flags. ³]©w©Ò¦³¦b°£¿ù¤W¦³¥ÎªººX¼Ð¡C --status-fd n Write special status strings to the file descriptor n. See the file DETAILS in the documentation for a listing of them. ±N¯S®íª¬ºA¦r¦ê°O¿ý¨ìÀÉ®× (¤Þ¼Æ n) ¤§¤¤¡C¦³Ãö©Ò¦³ ªºª¬ºA¦r¦ê¥i¦b¤å¥ó¥Ø¿ý¤¤ (͵ù¡GGPG_SOURCE\doc\) ªºÀÉ®× DETAILS ¬Ý¨ì¡C --logger-fd n Write log output to file descriptor n and not to stderr. ±N°O¿ý¿é¥X¨ìÀÉ®× (¤Þ¼Æ n) ¤§¤¤¡A¦Ó¤£ª½±µ¿é¥X¨ì¼Ð ·Ç¿ù»~¿é¥X¡C --no-comment Do not write comment packets. This option affects only the generation of secret keys. Please note, that this has nothing to do with the comments in clear text signatures. ¤£±Nµù¸Ñ«Ê¥]¿é¥X¡C³o­Ó¿ï¶µ¥u¦b²£¥Í¨pÆ_®É¦³§@¥Î¡C ½Ðª`·N¡A³o­Ó¿ï¶µ¤£·|¹ï¤å¦rª½±µÃ±¸pªºµù¸Ñ§@¥Î¡C --comment string Use string as comment string in clear text signatures. To suppress those comment strings entirely, use an empty string here. ¦bñ¸p¤¤¥H¤Þ¼Æªº¦r¦ê°µ¬°µù¸Ñ¡C¦pªG­nÁôÂéҦ³ªºµù ¸Ñ¤å¦r¡A¥u­n¨Ï¤Þ¼ÆªÅ¥Õ§Y¥i¡C --default-comment Force to write the standard comment string in clear text signatures. Use this to overwrite a --comment from a config file. ±N¼Ð·Çµù¸Ñ±j¨î¥[¤J¨ìñ¸p¤º®e¡C¨Ï¥Î³o­Ó¿ï¶µ¨ÓÂмg ¿ï¶µÀɤ¤ --comment ©Ò«ü©wªºµù¸Ñ¤å¦r¡C --no-version Omit the version string in clear text signatures. ¦bñ¸p¤º®e¤¤¬Ù²¤ª©¥»«Å§i¡C --emit-version Force to write the version string in clear text signatures. Use this to overwrite a previous --no-version from a config file. ±j¨î±Nª©¥»«Å§i¦r¦ê¥[¤J¤å¥óñ¸p¤¤¡C¨Ï¥Î¥»¿ï¶µ¨ÓÂÐ »\¿ï¶µÀɤ¤ --no-version ¿ï¶µ¡C -N, --notation-data name=value Put the name value pair into the signature as notation data. name must consist only of alphanumeric characters, digits or the underscore; the first character must not be a digit. value may be any printable string; it will be encoded in UTF8, so you should check that your --charset is set correctly. If you prefix name with an exclamation mark, the notation data will be flagged as critical (rfc2440:5.2.3.15). --set-policy-url string Use string as Policy URL for signatures (rfc2440:5.2.3.19). If you prefix it with an exclamation mark, the policy URL packet will be flagged as critical. --set-filename string Use string as the name of file which is stored in messages. ±N¤Þ¼Æªº¤å¦r³]¬°ÀɮצWºÙ¨Ã¦s¤J°T®§¤§¤¤¡C(͵ù¡G¥» ¿ï¶µ©ó¥[±K®É¨Ï¥Î¡AÀ³°t¦X¤U¤@­Ó¿ï¶µ¡C) --use-embedded-filename Try to create a file with a name as embedded in the data. This can be a dangerous option as it allows to overwrite files. ¸ÕµÛ²£¥Í¥H°T®§­ì¥ýÀx¦sªºÀɮצWºÙ¨Ó©R¦WªºÀɮסC³o ¥i¯à¬O¤@­Ó¦MÀIªº¿ï¶µ¡A¦]¬°¥¦·|ª½±µÂмg¤w¦s¦bªº¦P ¦WÀɮסC(͵ù¡G¥»¿ï¶µ©ó¸Ñ±K®É¨Ï¥Î¡AÀ³°t¦X¤W¤@­Ó¿ï ¶µ¨Ï¥Î¡C) --completes-needed n Number of completely trusted users to introduce a new key signer (defaults to 1). --marginals-needed n Number of marginally trusted users to introduce a new key signer (defaults to 3) --max-cert-depth n Maximum depth of a certification chain (default is 5). --cipher-algo name Use name as cipher algorithm. Running the program with the command --version yields a list of supported algorithms. If this is not used the cipher algorithm is selected from the preferences stored with the key. «ü©w¥H¤Þ¼Æ name ©Ò³]ªº¥[±Kºtºâªk°µ¥[±K¹Bºâ¡C¦pªG ©Ò«ü©wªººtºâªk¤£»P©Ò¿ï¥Îªº¤½Æ_¨äºtºâªk¬Û²Å®É¡A½Ð °õ¦æµ{¦¡¨Ã¨Ï¥Î«ü¥O --version ¨ÓÅã¥Ü©Ò¦³¤ä´©ªººtºâ ªk¡C(Ķ«ö¡G¥»¬q¤º®e½Ð¥H­ì¤å¬°·Ç¡Aͤå¥i¯à»P­ì·N¦³ ¥X¤J¡C) --digest-algo name Use name as message digest algorithm. Running the program with the command --version yields a list of supported algorithms. Please note that using this option may violate the OpenPGP requirement, that a 160 bit hash is to be used for DSA. «ü©w¥H¤Þ¼Æ name ©Ò³]ªººK­n­Èºtºâªk°µÂø´ê¨ç¼Æªº¹B ºâ¡C°õ¦æµ{¦¡¨Ã¨Ï¥Î«ü¥O --version ¥i¥HÅã¥Ü©Ò¦³¤ä´© ªººtºâªk¡C¥t¥~½Ðª`·N¡G¨Ï¥Î¥»¿ï¶µ±N¥i¯à»P OpenPGP ªº­n¨D¤£¬Û®e¡A¦]¬° DSA ºtºâªk·|¨Ï¥Î¨ì¤@­Ó 160bit ªºÂø´ê­È¡C(Ķ«ö¡G¥»¬q¤º®e½Ð¥H­ì¤å¬°·Ç¡Aͤå¥i¯à¦³ ¥X¤J¡C) --s2k-cipher-algo name Use name as the cipher algorithm used to protect secret keys. The default cipher is BLOWFISH. This cipher is also used for conventional encryption if --cipher-algo is not given. «ü©w¥H¤Þ¼Æ name ©Ò³]ªº¥[±Kºtºâªk¡A¨Ó«OÅ@¨pÆ_¡C¹w ³]ªººtºâªk¬O BLOWFISH ¡C¦pªG --cipher-algo ¥¼³Q«ü ©wªº¸Ü¡A³oºØ¥[±K¤]¦P®É³Q¥Î°µ¶Ç²Î¥[±K®Éªººtºâªk¡C --s2k-digest-algo name Use name as the digest algorithm used to mangle the passphrases. The default algorithm is RIPE- MD-160. This digest algorithm is also used for conventional encryption if --digest-algo is not given. «ü©w¥H¤Þ¼Æ name ©Ò³]ªººK­nºtºâªk¡A¨Ó¥´¶Ã±K½X¥H«O Å@±K½X¡A¹w³]¬° RIPE-MD-160 ¡C¦pªG --digest-algo ¥¼³Q«ü©wªº¸Ü¡A³oºØºtºâªk¤]¦P®É³Q¥Î°µ¶Ç²Î½s½X®Éªº ºtºâªk¡C --s2k-mode n Selects how passphrases are mangled. If n is 0 a plain passphrase (which is not recommended) will be used, a 1 (default) adds a salt to the passphrase and a 3 iterates the whole process a couple of times. Unless --rfc1991 is used, this mode is also used for conventional encryption. --compress-algo n Use compress algorithm n. Default is 2 which is RFC1950 compression. You may use 1 to use the old zlib version (RFC1951) which is used by PGP. The default algorithm may give better results because the window size is not limited to 8K. If this is not used the OpenPGP behavior is used, i.e. the compression algorithm is selected from the preferences; note, that this can't be done if you do not encrypt the data. --disable-cipher-algo name Never allow the use of name as cipher algorithm. The given name will not be checked so that a later loaded algorithm will still get disabled. --disable-pubkey-algo name Never allow the use of name as public key algorithm. The given name will not be checked so that a later loaded algorithm will still get disabled. --no-sig-cache Do not cache the verification status of key signatures. Caching gives a much better performance in key listings. However, if you suspect that your public keyring is not save against write modifications, you can use this option to disable the caching. It probably does not make sense to disable it because all kind of damage can be done if someone else has write access to your public keyring. --no-sig-create-check GnuPG normally verifies each signature right after creation to protect against bugs and hardware malfunctions which could leak out bits from the secret key. This extra verification needs some time (about 115% for DSA keys), and so this option can be used to disable it. However, due to the fact that the signature creation needs manual interaction, this performance penalty does not matter in most settings. --throw-keyid Do not put the keyid into encrypted packets. This option hides the receiver of the message and is a countermeasure against traffic analysis. It may slow down the decryption process because all available secret keys are tried. --not-dash-escaped This option changes the behavior of cleartext signatures so that they can be used for patch files. You should not send such an armored file via email because all spaces and line endings are hashed too. You can not use this option for data which has 5 dashes at the beginning of a line, patch files don't have this. A special armor header line tells GnuPG about this cleartext signature option. --escape-from-lines Because some mailers change lines starting with "From " to " Using an exact to match string. The equal sign indicates this. Using the email address part which must match exactly. The left angle bracket indicates this email address mode. +Heinrich Heine duesseldorf All words must match exactly (not case sensitive) but can appear in any order in the user ID. Words are any sequences of letters, digits, the underscore and all characters with bit 7 set. #34 Using the Local ID. This is a very low level method and should only be used by applications which really need it. The hash character indicates this method. An application should not assume that this is only a number. Heine *Heine By case insensitive substring matching. This is the default mode but applications may want to explicitly indicate this by putting the asterisk in front. Note that you can append an exclamation mark to key IDs or fingerprints. This flag which tells GnuPG to use exactly that primary or secondary key and don't try to figure out which secondary or primary key to use. RETURN VALUE The program returns 0 if everything was fine, 1 if at least a signature was bad, and other error codes for fatal errors. EXAMPLES gpg -se -r Bob file sign and encrypt for user Bob gpg --clearsign file make a clear text signature gpg -sb file make a detached signature gpg --list-keys user_ID show keys gpg --fingerprint user_ID show fingerprint gpg --verify pgpfile gpg --verify sigfile [files] Verify the signature of the file but do not output the data. The second form is used for detached signatures, where sigfile is the detached signature (either ASCII armored of binary) and [files] are the signed data; if this is not given the name of the file holding the signed data is constructed by cutting off the extension (".asc" or ".sig") of sigfile or by asking the user for the filename. ENVIRONMENT HOME Used to locate the default home directory. GNUPGHOME If set directory used instead of "~/.gnupg". http_proxy Only honored when the option --honor-http-proxy is set. FILES ~/.gnupg/secring.gpg The secret keyring ~/.gnupg/secring.gpg.lock and the lock file ~/.gnupg/pubring.gpg The public keyring ~/.gnupg/pubring.gpg.lock and the lock file ~/.gnupg/trustdb.gpg The trust database ~/.gnupg/trustdb.gpg.lock and the lock file ~/.gnupg/random_seed used to preserve the internal random pool ~/.gnupg/options May contain options /usr[/local]/share/gnupg/options.skel Skeleton options file /usr[/local]/lib/gnupg/ Default location for extensions WARNINGS Use a *good* password for your user account and a *good* passphrase to protect your secret key. This passphrase is the weakest part of the whole system. Programs to do dictionary attacks on your secret keyring are very easy to write and so you should protect your "~/.gnupg/" directory very well. Keep in mind that, if this program is used over a network (telnet), it is *very* easy to spy out your passphrase! If you are going to verify detached signatures, make sure that the program nows about it; either be giving both filenames on the commandline or using - to specify stdin. BUGS On many systems this program should be installed as setuid(root). This is necessary to lock memory pages. Locking memory pages prevents the operating system from writing memory pages to disk. If you get no warning message about insecure memory your operating system supports locking without being root. The program drops root privileges as soon as locked memory is allocated.