4.2. PGP移植到GPG

  1. 导入公钥

    $ pgp -kxa <userid> > <userid.asc>
    $ gpg --import < <userid.asc>
    

    or

    $ pgp -kxa <userid> | gpg --import 
    

    测试

    $ echo 'Hello Friend!' | gpg -ear <userid>
    
  2. 导入公钥和密钥

    • 导入公钥

      $ pgp -kx <userid> | gpg --import
      
    • 去掉PGP密钥的加密口令 (NO LONGER REQUIRED!)

      $ pgp -ke <userid>
      
    • Export private key into GnuPG

      $ gpg --armor --export-secret-keys --secret-keyring ~/.pgp/secring.skr <userid> > mykey.sec
      $ gpg --import --allow-secret-key-import < mykey.sec
      
    • Set passphrase on both keys IMMEDIATELY

      $ pgp -ke <userid>
      $ gpg --edit-key <userid>
      
    • Test key.

      $ echo 'hello world' | pgp -er <userid> | gpg --decrypt