°Ô½Ã¹° 260°Ç
   
[Redhat6.5]gpg »ç¿ëÇϱâ (gpgkey / gpg2 )
±Û¾´ÀÌ : theko ³¯Â¥ : 2015-01-07 (¼ö) 23:04 Á¶È¸ : 5100
1. gpg »ç¿ëÇϱâ
(1) »ç¿ë¹ý
   gpg [options] command
(2) command
   --gen-key : »õ·Î¿î °ø°³Å°¿Í ºñ¹ÐÅ°¸¦ »ý¼ºÇÑ´Ù. 
   --list-keys : ¼³Ä¡µÈ °ø°³Å°ÀÇ ¸®½ºÆ®¸¦ º¸¿©ÁØ´Ù.
   --export : °ø°³Å°¸¦ ´Ù¸¥ »ç¶÷¿¡°Ô Àü´ÞÇϱâ À§Çؼ­ ÆÄÀÏÀÇ ÇüÅ·Π¸¸µé¾î ÁØ´Ù. ±âº»ÀûÀ¸·Î 
              ¹ÙÀ̳ʸ®ÇüÅ·Π¸¸µç´Ù. ÀÌ ´ÙÀ½¿¡ ¿À´Â Å°ÀÇ À̸§Àº À§¿¡ »ý¼ºµÈ Å°»ý¼º½Ã ÀÔ·ÂÇÑ
              ¹®ÀÚ¿­ÀÇ ÀϺγª Àüü¸¦ »ç¿ëÇϵµ·Ï ÇÑ´Ù.
   --import! : ´Ù¸¥ »ç¶÷ÀÇ °ø°³Å°¸¦ °¡Áö°í ÀÚ½ÅÀÇ gpg¿¡ ¼³Ä¡ÇÑ´Ù.
   --edit-key : Å°¿¡ ´ëÇÏ¿© »çÀÎ(sign)µîÀÇ ÆíÁýÀ» ÇÑ´Ù. 
   --encrypt, -e : ÀڷḦ ¾ÏȣȭÇÑ´Ù.
(3) options
   --outfile ÆÄÀϸí : 'ÆÄÀϸí'À¸·Î °ø°³Å°°¡ µé¾îÀÖ´Â ÆÄÀÏÀ» »ý¼ºÇÑ´Ù. º¸Åë --export¿Í °°ÀÌ »ç¿ë
                    µÇ¸ç ÀÌ ¿É¼ÇÀ» »ç¿ëÇÏÁö ¾ÊÀ¸¸é È­¸éÀ¸·Î Ãâ·ÂÀ¸·Î Ãâ·ÂÇÑ´Ù. 
   --armor , -a    : °ø°³Å°¸¦ ASCIIÇüÀ¸·Î ¸¸µç´Ù.
   --encrypt : ¾ÏȣȭÇÏ´Â ¿É¼ÇÀÌ´Ù.
   --recipient : ¾ÏȣȭÇÏ´Â ¿É¼ÇÀÎ --encrypt°ú °°ÀÌ ¾²ÀÌ¸ç ¹Þ´Â »ç¶÷ÀÇ °ø°³Å°¸¦ Àû´Â´Ù.
   --decrypt : Çص¶È­ÇÏ´Â ¿É¼ÇÀÌ´Ù.
(4) »ç¿ë¿¹
   1) [posein@www posein]$ gpg --output sungjae.gpg --armor --export sungjae
       => °ø°³Å°¸¦ sungjae¶ó°í »ý¼ºÇÏ°í sungjae.gpg¶ó´Â ÆÄÀÏ·Î ÀúÀåÇÑ´Ù. 
   2) [prehee@www prehee]$ gpg --armor --import! sungjae.gpg
       => sungjae.gpg¶ó´Â °ø°³Å°¸¦ ÀÚ½ÅÀÇ gpg¿¡ ¼³Ä¡ÇÑ´Ù. --armor¿É¼ÇÀº ÅؽºÆ®ÇüÅÂÀÇ ÆÄÀÏÀ»
         import!ÇÒ °æ¿ì¸¦ ¶æÇÑ´Ù.
   3) [prehee@www prehee]$ gpg --edit-key sungjae


2. gpgÀÇ ¼³Á¤
(1) °ø°³Å°¿Í ºñ¹ÐÅ°¸¦ »ý¼ºÇÑ´Ù.
   [posein@www posein]$ gpg --gen-key
   gpg (GnuPG) 1.0.6; Copyright (C) 2001 Free Software Foundation, Inc.
   This program comes with ABSOLUTELY NO WARRANTY.
   This is free software, and you are welcome to redistribute it
   under certain conditions. See the file COPYING for details.

   gpg: Warning: using insecure memory!
   Please select what kind of key you want:
      (1) DSA and ElGamal (default)
      (2) DSA (sign only)
      (4) ElGamal (sign and encrypt)
   Your selection?
    => (¼³¸í) gpg¿¡¼­´Â À§¿Í °°Àº Å°¹æ½ÄÀ» Á¦°øÇϴµ¥ DSA´Â ¼­¸í¸¸ ÇÒ ¼ö ÀÖ´Â ¹æ½ÄÀÌ°í EIGamal
            Àº ¾Ïȣȭ¸¦ ÇÒ ¼ö ÀÖ´Â ¹æ½ÄÀÌ´Ù. ÀϹÝÀûÀ¸·Î µðÆúÆ®°ªÀ» »ç¿ëÇÏ¸é µÇ¹Ç·Î ¿£ÅÍÅ°¸¦ 
            Ä¡°í ´ÙÀ½À¸·Î ³Ñ¾î°£´Ù.

   DSA keypair will have 1024 bits.
   About to generate a new ELG-E keypair.
                 minimum keysize is  768 bits
                 default keysize is 1024 bits
       highest suggested keysize is 2048 bits
   What keysize do you want? (1024)
    => (¼³¸í) Å°ÀÇ ±æÀ̸¦ Á¤ÇÏ´Â °ÍÀÌ´Ù. ¹°·Ð Å©±â°¡ Ŭ¼ö·Ï ¾ÈÀüÇÏÁö¸¸, ¾ÏȣȭÇÏ°í Çص¶Çϴµ¥
             ¸¹Àº ½Ã°£ÀÌ °É¸°´Ù. ÀÌ ºÎºÐµµ µðÆúÆ®°ªÀ¸·Î ÇÑ´Ù.
   Requested keysize is 1024 bits
    => (¼³¸í) 1024bit·Î Å°ÀÇ Å©±â°¡ ¼³Á¤µÇ¾ú´Ù.
   Please specify how long the key should be valid.
            0 = key does not expire
         <n>  = key expires in n days
         <n>w = key expires in n weeks
         <n>m = key expires in n months
         <n>y = key expires in n years
   Key is valid for? (0)
    => (¼³¸í) Å°ÀÇ À¯È¿±â°£À» ÁöÁ¤ÇÏ´Â °ÍÀÌ´Ù. Áß¿äÇÑ °ÍÀÏ °æ¿ì¿¡´Â À¯È¿±â°£À» ª°Ô Àâ¾Æ¼­ Å°¸¦
            ÀÚÁÖ º¯°æÇÏ´Â °ÍÀÌ ÁÁ´Ù. ÀÌ ºÎºÐµµ µðÆúÆ®°ªÀ¸·Î ÇÑ´Ù. Áï À¯È¿±â°£ÀÌ ¾ø´Ù.
   Key does not expire at all 
    => (¼³¸í) À¯È¿±â°£ÀÌ ¼³Á¤µÇÁö ¾ÊÀ½À» ³ªÅ¸³½´Ù.
   Is this correct (y/n)? y
    => (¼³¸í) Á¤È®È÷ ¸Â´ÂÁö ¿©ºÎ¸¦ ¹¯´Â ºÎºÐÀÌ´Ù.
   You need a User-ID to identify your key; the software constructs the user id
   from Real Name, Comment and Email Address in this form:
       "Heinrich Heine (Der Dichter) <
heinrichh@duesseldorf.de>"

   Real name: Jung Sung-jae
    => (¼³¸í) Å°ÀÇ À̸§À» Á¤ÇÏ´Â ºÎºÐÀÌ´Ù. º¸Åë ÀÚ½ÅÀÇ À̸§À» Àû´Â´Ù.
   Email address: 
posein@korea.com
    => (¼³¸í) ÀÚ½ÅÀÇ ÀüÀÚ¿ìÆí ÁÖ¼Ò¸¦ ¾´´Ù.

   Comment: system manager
    => (¼³¸í) ¼³¸íÇÑ °ÍÀÌ ÀÖÀ¸¸é Àûµµ·Ï ÇÑ´Ù.
   You selected this USER-ID:
       "Jung Sungjae (system manager) <
posein@korea.com>"
   Change (N)ame, (C)omment, (E)mail or (O)kay/(Q)uit? o
    => (¼³¸í) À§¿Í°°ÀÌ »ý¼ºÀÌ µÇ¸ç º¯°æÇÒ »çÇ×ÀÌ ¾øÀ¸¸é o¸¦ ´©¸¥´Ù.
   You need a Passphrase to protect your secret key.
    => ºñ¹ÐÅ° º¸È£¿ë ¾ÏÈ£¸¦ ¼³Á¤ÇÑ´Ù.
   
   We need to generate a lot of random bytes. It is a good idea to perform
   some other action (type on the keyboard, move the mouse, utilize the
   disks) during the prime generation; this gives the random number
   generator a better chance to gain enough entropy.
   .++++++++++++++++++++.+++++++++++++++++++++++++.+++++...+++++.++++++++++.++++++++++.+++++
   We need to generate a lot of random bytes. It is a good idea to perform
   some other action (type on the keyboard, move the mouse, utilize the
   disks) during the prime generation; this gives the random number
   generator a better chance to gain enough entropy.
   .+++++++++++++++++++++++++++++++++++.++++++++++++++++++++.++++++++++++++++++++++++++++++++
   public and secret key created and signed.
    => (¼³¸í) °ø°³Å°¿Í ºñ¹ÐÅ°¸¦ »ý¼ºÇÏ¿´´Ù. 
(2) »ý¼ºµÈ Å°ÀÇ È®ÀÎ
   1) ¼³Ä¡µÈ µð·ºÅ丮ÀÇ È®ÀÎ
     [posein@www posein]$ ls -a
     ./   .bash_history  .bash_profile  .emacs   .kde/      .mysql_history  .viminfo  
     ../   bash_logout   .bashrc        .gnupg/  .mplayer/  .screenrc       .wl       
       => .gnupg¶ó´Â µð·ºÅ丮°¡ »ý¼ºµÇ¾úÀ½À» ¾Ë ¼ö ÀÖ´Ù. 
   2) ¼³Ä¡µÈ µð·ºÅ丮³»ÀÇ ÆÄÀÏ
     [posein@www posein]$ cd .gnupg
     [posein@www .gnupg]$ ls
     options  pubring.gpg  pubring.gpg~  random_seed  secring.gpg
   3) ¼³Ä¡µÈ °ø°³Å°ÀÇ ¸®½ºÆ® È®ÀÎ
     posein@www posein]$ gpg --list-keys
     gpg: Warning: using insecure memory!
     /home/posein/.gnupg/pubring.gpg
     -------------------------------
     pub  1024D/7F1400E1 2002-04-11 Jung sungjae (system manager) <
posein@korea.com>

     sub  1024g/C4E2C936 2002-04-11

3. °ø°³Å° ÆÄÀÏÀÇ »ý¼º°ú ¼³Ä¡

(1) °ø°³Å° ÆÄÀÏ ¸¸µé±â
   1) [posein@www posein]$ gpg --armor --export sungjae
      gpg: Warning: using insecure memory!
      -----BEGIN PGP PUBLIC KEY BLOCK-----
      Version: GnuPG v1.0.6 (GNU/Linux)
      Comment: For info see http://www.gnupg.org

      mQGiBDy1VWIRBACyHe0EnIe7payoWcNRSDwc/SLSL8pZ7kIrkPlnv6P3tARJN0xU
      s/C+kBLhB3JCN0N/7HO8QL82tcZFGQX0RStEzjp4DxIDFRZCcxq6AQdmoCW+FYxV
      p4mBpSheoNzw3sOumviHSiuo8qCUFY1/NSInvTJJzcgcBhHeoNbSEEKrFwCgzCrq
      1J8kvQG10j51mKu9iRFbq3UD/2icBWGRnQ+oWSUZAEvodjn560uobpxe2Py6jwlJ
      NCwv+dLFJV2MX1e4faRU5yfDF0O43IlgO8gjiA4whi8GuDzgVbVJsTWcrlZjusmw
      fj4wlelNXm/KahYfuTsWCusAQDBpUCDKjmUY9ocxf5aaSscQMXVexs5Q7TZNSsG5
      yFtZA/9Qcng02Auizqz5aOysmU2UuGEanbK+TR0dGe2FHw4hV7fCWVqsj5Q7h/sj
      +pCDWQp9oCZUA6WoFUWXAeHRXZ9Cl9bOMmiBAtcqxdo1Sy02d0RgC+esrubEPXrR
      cMkJSpIfHEZrHInZQjUw8qOB9o1N3itGFCpCWoHLhug7Ol3N3bQic3VuZ2phZSAo
      bGludXgpIDxwb3NlaW5Aa29yZWEuY29tPohXBBMRAgAXBQI8tVViBQsHCgMEAxUD
      AgMWAgECF4AACgkQbR8Td38UAOFL/wCfUxSvPnjrh6MPJA9q18qIsrR3wVQAniCM
      vftp1iqSWnFkRtC2yMK3FSaOuQENBDy1VWMQBACL+zeYup7TTWiaV4wooqRVXAdd
      8BvxoA6hfyTFXCvpqsbXAoy/3dbBY/bqhf9sJdE7ksVTjHd1o2aD7eDzkr2hzLC8
      x/NkBh+PcgiaqJR9APBSroW5ySr0PF6XfWHIgvgF00+Luu4GpqrXEdIh6SxImXm3
      2EF6xBukjCjxCDG3LwADBQP/QPOzqGmSrlNClp4aWrh7Q9xdQLLx9hW62hmsApT4
      /CG2wp7gDDshts+nwltw3+4LLp6j2MOP2bPoakbXcIBnW457gpZmsbyyFRwmmYqW
      WjFR3DDLmxeeX0Pqb8kNgUTCf31cgRDdUjQM0JdcE8kfM1pzFLjsk8umND6oqaB4
      waSIRgQYEQIABgUCPLVVYwAKCRBtHxN3fxQA4XABAJ0cSqKUNMWehupuoItg+qZd
      GYxFmACfRfHzc+aZ2jDdYZdBKZ8AczR1OwY=
      =c2ma
      -----END PGP PUBLIC KEY BLOCK-----
       => (¼³¸í) --output¿É¼ÇÀ» ºÙ¿© ÁÖÁö ¾Ê¾Ò´Ù¸é °á°ú°¡ Ç¥ÁØÃâ·ÂÀÎ È­¸éÀ¸·Î ³ªÅ¸³ª´Ù. ÀÌ 
                ÅؽºÆ® °á°ú¸¦ ÀüÀÚ ¸ÞÀÏ·Î Àü¼ÛÇØ Áشٰųª ȨÆäÀÌÁö¿¡ ¿Ã¸®°Ô µÇ¸é ´Ù¸¥ »ç¶÷µéÀÌ
                ÀÌ °ø°³Å°¸¦ °¡Áö°í ÁöÁ¤µÈ »ç¶÷µé¸¸ÀÌ º¼ ¼ö ÀÖ´Â ºñ¹Ð ¹®¼­¸¦ º¸³¾ ¼ö ÀÖ°Ô µÈ´Ù.
   2) [posein@www posein]$ gpg --output sungjae.gpg --armor --export sungjae
       => sungjae.gpg¶ó´Â °ø°³Å°¸¦ »ý¼ºÇÑ´Ù.
(2) ´Ù¸¥ »ç¶÷ÀÇ °ø°³Å° ¼³Ä¡Çϱâ
   1) ´Ù¸¥ »ç¶÷ÀÇ °ø°³Å°¸¦ ¼³Ä¡
     [prehee@www prehee]$ gpg --armor --import! sungjae.gpg
     gpg: Warning: using insecure memory!
     gpg: key 21BCE5C8: public key import!ed
     gpg: /home/prehee/.gnupg/trustdb.gpg: trustdb created
     gpg: Total number processed: 1
     gpg:               import!ed: 1
      => (¼³¸í) sungjae.gpg´Â sungjae¶ó´Â »ç¶÷ÀÇ °ø°³Å°°¡ µé¾îÀÖ´Â ÆÄÀÏÀÌ°í, ÅؽºÆ® ÆÄÀÏÇüÅÂÀÌ
              ¹Ç·Î --armor¿É¼ÇÀ» »ç¿ëÇÏ¿´´Ù. Âü°í·Î óÀ½À¸·Î gpg¸¦ ½ÇÇà½ÃÅ°¸é µð·ºÅ丮¿Í °ü·Ã
              ÆÄÀÏÀ» ¸ÕÀú »ý¼ºÇϹǷΠ´Ù½Ã Çѹø ¸í·ÉÀ» ³»·Á¾ß ÇÑ´Ù.
   2) ¼³Ä¡µÈ °ø°³Å°ÀÇ È®ÀÎ
     [prehee@www prehee]$ gpg --list-keys
     gpg: Warning: using insecure memory!
     /home/prehee/.gnupg/pubring.gpg
     -------------------------------
     pub  1024D/67667253 2002-04-11 prehee (system tester) <
prehee@mybestone.com>
     sub  1024g/F1FB95A8 2002-04-11

     pub  1024D/21BCE5C8 2002-04-11 Jung sungjae (system) <
posein@korea.com>
     sub  1024g/F5F740F4 2002-04-11
      => ´Ù¸¥ »ç¶÷ÀÇ °ø°³Å°¸¦ Àß ÀÌ¿ëÇÏ·Á¸é ÀÚ½ÅÀÇ ºñ¹ÐÅ°¸¦ À§¿Í °°ÀÌ ¹Ì¸® »ý¼ºÇØ¾ß ÇÑ´Ù.

   3) ´Ù¸¥ »ç¶÷ °ø°³Å°°¡ ¼­¸í´Þ±â
      [prehee@www prehee]$ gpg --edit-key sungjae
      gpg (GnuPG) 1.0.6; Copyright (C) 2001 Free Software Foundation, Inc.
      This program comes with ABSOLUTELY NO WARRANTY.
      This is free software, and you are welcome to redistribute it
      under certain conditions. See the file COPYING for details.

      gpg: Warning: using insecure memory!

      pub  1024D/21BCE5C8  created: 2002-04-11 expires: never      trust: -/q
      sub  1024g/F5F740F4  created: 2002-04-11 expires: never
      (1). Jung sungjae (system manager) <
posein@korea.com>
      Command>
        => (¼³¸í) °ø°³Å°ÀÇ ÆíÁýÀ» À§ÇÑ »óÅ·ΠÁøÀÔÇÑ´Ù.

      Command> fpr
      pub  1024D/21BCE5C8 2002-04-11 sungjae (linux) <
posein@korea.com>

                   Fingerprint: A20D 6C76 1919 4FCF 5A57  2BE2 BBE2 67FC 21BC E5C8
       => (¼³¸í) °ø°³Å°ÀÇ Áö¹®(fingerprint)À» È®ÀÎÇÒ ¼ö ÀÖ´Ù. Fingerprint¶ó´Â ¸» µÚ¿¡ ³ª¿À´Â
                16Áø¼öÀÇ ¼ýÀÚµéÀÌ ÀÌ °ø°³Å°ÀÇ Áö¹®ÀÌ´Ù. ÀÌ Áö¹®À» °ø°³Å° ÁÖÀΰú ¿¬¶ôÇϸ鼭
                (ÀüÈ­µîÀ¸·Î ¿¬¶ôÇÏ¸é ¼­·Î Áö¹®À» ºñ±³) È®ÀÎÇÒ ¼ö ÀÖ´Ù. ÀÌ·¸°Ô È®ÀÎÀ» °ÅÄ¡¸é 
                sign¸í·ÉÀ¸·Î sungjaeÀÇ °ø°³Å°¿¡ ³ªÀÇ ¼­¸íÀ» ÇÒ ¼ö ÀÖ´Ù.
      Command> sign

      pub  1024D/21BCE5C8  created: 2002-04-11 expires: never      trust: -/q
                   Fingerprint: A20D 6C76 1919 4FCF 5A57  2BE2 BBE2 67FC 21BC E5C8

           Jung sungjae (system manager) <
posein@korea.com>

      Are you really sure that you want to sign this key
      with your key: "prehee (system tester) <
prehee@mybestone.com>"

      Really sign? y

      You need a passphrase to unlock the secret key for
      user: "prehee (system tester) <
prehee@mybestone.com>"
      1024-bit DSA key, ID 67667253, created 2002-04-11

      Enter passphrase:
       => Æнº¿öµå¸¦ ÀÔ·ÂÇÏ¸é ¼­¸íÀÌ µÈ´Ù.
      
      Command> check
      uid  Jung sungjae (system manager) <
posein@korea.com>
      sig!       21BCE5C8 2002-04-11   [self-signature]
      sig!       67667253 2002-04-11   prehee (system tester) <prehee@mybestone
       => (¼³¸í) °á°ú¸¦ º¸¸é ´Ù¸¥ »ç¶÷ÀÇ °ø°³Å°¿¡ ¼­¸íÀ» Ç߾ ÀÚ½ÅÀÇ °ø°³Å°¿¡µµ ¼­¸íÀÌ µÈ´Ù.
               ÀÚ½ÅÀÇ °ø°³Å°¸¦ exportÇÒ ¶§¿¡´Â ÀÚµ¿ÀûÀ¸·Î gpg°¡ ÀÚ½ÅÀÇ ¼­¸íÀ» ÇØÁØ´Ù.

4. ¹®¼­¸¦ ¾ÏȣȭÇÏ°í Çص¶Çϱâ

(1) °³¿ä : ¹®¼­¸¦ ƯÁ¤Àο¡°Ô º¸³»°í ½ÍÀ» °æ¿ì¿¡ ¹®¼­¸¦ ±× »ç¶÷ÀÇ °ø°³Å°¸¦ ÀÌ¿ëÇؼ­ ¾ÏȣȭÇÑ
          µÚ ±× ¾ÏȣȭµÈ ¹®¼­¸¦ ±× »ç¶÷ÀÌ ¹Þ°Ô µÇ¸é ±× »ç¶÷Àº ÀÚ½ÅÀÇ °ø°³Å°·Î ¾Ïȣȭ µÈ ¹®¼­¸¦
          ÀÚ½ÅÀÇ ºñ¹ÐÅ°·Î Çص¶ÇÒ ¼ö ÀÖ´Ù.
(2) »ç¿ë¿¹ : prehee¶ó´Â »ç¿ëÀÚ°¡ posein(Jung sungjae)À̶ó´Â »ç¿ëÀÚ¿¡°Ô º¸³»±â À§ÇØ ¾ÏȣȭÇÔ
   1) ¾Ïȣȭ
     a. [prehee@www prehee]$ cat a.txt
        I love linux
        I love windows.
         => (¼³¸í) ´ÙÀ½°ú °°Àº ¹®¼­°¡ ÀÖ´Ù.
     b. [prehee@www prehee]$ gpg --output en_a.txt --encrypt --recipient sungjae a.txt
        gpg: Warning: using insecure memory!
        => a.txt¶ó´Â ¹®¼­¸¦ ¾ÏȣȭÇÏ¿© en_a.txt¶ó´Â ÆÄÀÏÀ» »ý¼ºÇÑ´Ù. --recipient ´ÙÀ½¿¡´Â
          ¹Þ´Â »ç¶÷ÀÇ °ø°³Å° À̸§À» Àû´Â´Ù.
     c. [prehee@www prehee]$ ls
        Desktop/  a.txt  en_a.txt  sungjae.gpg
         => ¾ÏȣȭµÈ ÆÄÀÏÀÌ »ý¼ºµÇ¾ú´Ù. ÀϹÝÀûÀÎ ÅؽºÆ®È®Àθí·ÉÀÎ catÀ» ÀÌ¿ëÇؼ­ »ìÆ캸¸é ±úÁø
           ¹®ÀڷΠǥ½ÃµÊÀ» ¾Ë ¼ö ÀÖ´Ù.
   2) Çص¶ : ÀÌ ¸ÞÀϵîÀ¸·Î Àü¼ÛµÊ ÆÄÀÏÀ» È®ÀÎÇغ¸µµ·Ï ÇÏÀÚ. ¾ÏȣȭµÈ ¹®¼­´Â º»ÀÎÀÇ ºñ¹ÐÅ°¸¸À»
            ÀÌ¿ëÇؼ­ Ç® ¼ö ÀÖ´Ù. 
     a. [posein@www posein]$ ls
        Desktop/  en_a.txt  sungjae.gpg  
         => ¾ÏȣȭµÈ ¹®¼­¸¦ Àü¼Û¹Þ¾Ò´Ù. cat¸í·ÉÀ» ÀÌ¿ëÇؼ­ È®ÀÎÇغÁµµ ¾Ë ¼ö°¡ ¾ø´Ù.
     b. [posein@www posein]$ gpg --output a.txt --decrypt en_a.txt
        gpg: Warning: using insecure memory!

        You need a passphrase to unlock the secret key for
        user: "Jung sungjae (system manager) <
posein@korea.com>"
        1024-bit ELG-E key, ID F5F740F4, created 2002-04-11 (main key ID 21BCE5C8)

        gpg: /home/posein/.gnupg/trustdb.gpg: trustdb created
        gpg: encrypted with 1024-bit ELG-E key, ID F5F740F4, created 2002-04-11
        "Jung sungjae (system manager) <
posein@korea.com>"
          => ÀÚ½ÅÀÇ ºñ¹ÐÅ°¸¦ ÀÌ¿ëÇÏ¿© ¾ÏÈ£¸¦ ÀÔ·ÂÇÏ¸é ¾ÏȣȭµÈ ¹®¼­ en_a.txt¸¦ a.txt·Î Çص¶
            ÇÑ´Ù.
     c. [posein@www posein]$ ls
        Desktop/  a.txt  en_a.txt  sungjae.gpg  
         => a.txt¶ó´Â ÆÄÀÏÀÌ »ý¼ºµÇ¾úÀ½À» ¾Ë ¼ö ÀÖ´Ù.
     d. [posein@www posein]$ cat a.txt
        I love linux
        I love windows.
         => Á¤»óÀûÀÎ ³»¿ëÈ®ÀÎÀÌ °¡´ÉÇÏ´Ù. 

À̸§ Æнº¿öµå
ºñ¹Ð±Û (üũÇÏ¸é ±Û¾´À̸¸ ³»¿ëÀ» È®ÀÎÇÒ ¼ö ÀÖ½À´Ï´Ù.)
¿ÞÂÊÀÇ ±ÛÀÚ¸¦ ÀÔ·ÂÇϼ¼¿ä.
   

miwit.com sir.co.kr DNS Powered by DNSEver.com DNS Powered by DNSEver.com