Skip to content

Latest commit

 

History

History
154 lines (106 loc) · 5.02 KB

200806272037.txt.md

File metadata and controls

154 lines (106 loc) · 5.02 KB

6.29 在Becky!中使用GnuPG

http://scz.617.cn/windows/200806272037.txt

A: scz@nsfocus 2008-06-27 20:37

比较土,2000年的时候跟着大伙儿一起用过一次PGP处理Email,后来人懒,未再用。 最近新打交道的一伙计要求使用GnuPG处理Email,索要我的公钥,没办法,捣腾了一 番。写个Mini-Howto备忘。

访问如下链接获取Becky!:

http://www.rimarts.co.jp/becky.htm http://www.rimarts.jp/downloads/B2/bk24700.zip

访问如下链接获取GnuPG:

http://www.gnupg.org/ http://www.gnupg.org/download/index.en.html ftp://ftp.gnupg.org/gcrypt/binary/gnupg-w32cli-1.4.9.exe

访问如下链接获取针对Becky!的GnuPG插件:

http://hp.vector.co.jp/authors/VA023900/gpg-pin/index_en.html http://hp.vector.co.jp/authors/VA023900/gpg-pin/BkGnuPG-1.0.5b2.full.zip

安装Becky!到如下目录:

\Program Files\RimArts\B2\

安装GnuPG到如下目录:

\Program Files\GNU\GnuPG\

修改PATH环境变量,确保"\Program Files\GNU\GnuPG"出现在其中。

复制针对Becky!的GnuPG插件(BkGnuPG.dll)到如下目录:

\Program Files\RimArts\B2\PlugIns\

生成自己的密钥对(公钥、私钥):

gpg.exe --gen-key

列出所有公钥:

gpg.exe --list-keys

pub 1024D/8BCAE505 2008-06-27 uid cloudsky (scz) <...> sub 4096g/B3D99670 2008-06-27

显示指定公钥:

gpg.exe --list-keys scz gpg.exe -k scz

显示指定公钥的指纹:

gpg.exe --fingerprint scz

pub 1024D/8BCAE505 2008-06-27 密钥指纹 = DE01 CA19 F4ED 1DBE 6D70 CF1F E43A C5CC 8BCA E505 uid cloudsky (scz) <...> sub 4096g/B3D99670 2008-06-27

可以将自己的公钥指纹以不同于公钥散发渠道的其它渠道公布出去,他人可以通过你 的公钥指纹验证你的公钥有效性。

显示指定私钥:

gpg.exe --list-secret-keys scz gpg.exe -K scz

备份指定公钥:

gpg.exe -o scz.asc --export-key -a scz

备份指定私钥:

gpg.exe -o scz-secret.asc --export-secret-key -a scz

删除指定公钥:

gpg.exe --delete-key scz

删除指定私钥:

gpg.exe --delete-secret-key scz

导入他人密钥(一般是公钥):

gpg.exe --import w3.asc gpg.exe --import topo.asc

为了在发信时使用他人公钥,必须信任他们提供的公钥,有两种办法(任选其一):

gpg.exe --sign-key w3 gpg.exe --check-sigs w3

gpg.exe --edit-key topo trust 5 y quit

写好邮件,打开Becky!的Tools菜单,有相关操作可供选择。收邮件时也类似。

最后,我的公钥(scz.asc)如下:

-----BEGIN PGP PUBLIC KEY BLOCK----- Version: GnuPG v1.4.9 (MingW32)

mQGiBEhkvewRBAC94Bw55wNAorUdeR5mCB72mwHxPGilK/y+HpNmlnQpIgMzYmQW wqXi09FdE1bPAWVCAtSzGNtcduQqtFmH+57ToMPg6WzzgPoKnBDQAgSobENP0TsD qJ3ihDyd8vofZT0ateG9lxWyMEfuETi9ow5o6yIJtFTaezaexR+2CWr7nwCg0I+A tv77AI9QDoYe8yObrS1yuU0D/jVJfffoRwQkt9haHDohJkerJGJeokwswo2pFtEr QudqtcSntKAMTWQ/mw+OyBOqmteEBRN0l2jKCuEza3FeOEGX/1Tbgaiz0xn4UudA lEPSbNOuZ1R9vUnn5L4Tst3yQdrBfvo+m8CgNCLhWgzquz373Q8ZtsB18zbAWHJl SfmLA/sHsp/nFB12byGw76h8gYXlCub9Rsg+n1OnhNiPFn7TNXVqGK1LfGS5+jAh c17NRZ5brbPrhqgsb6Wbo80veXAmhC4lBQNZbr2nRQnFOt6qsnNSRglm3r9ZL6N5 n3K5m4SFTVSRdymh85l3A7duGXmt5im7iSzJr55anoi3XfkBQ7QjY2xvdWRza3kg KHNjeikgPGNsb3Vkc2t5QGdtYWlsLmNvbT6IYAQTEQIAIAUCSGS97AIbAwYLCQgH AwIEFQIIAwQWAgMBAh4BAheAAAoJEOQ6xcyLyuUFpHgAniTQMuWzIr9ysxFTX5Ud D2myj5e5AJ9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xMbaqJBq9BDfz7WZw4yQP1DbqgMdrYTyv0boKQc02uuPAmzA6I8b8ZZ YoOKU0jKwbPXSDa+MyXWZfvwm2YuARfsHlnappSvJPivkBd5IbaNmbC6TINNUSgt J6ja3Od27860ptI1WGsCdHu5Qf9p1APLHLUNdiCwVyowo278XQlJVrCYdCUGyNme SAe4W1jF33TDs7eaZ1kJfpwrhESA/3H+YVh3IryVJH0mEZVTl1IwSUryYZ6ozgXz SIHqXrpOIC6gv9Fo1WupPDzhfHfdjH6NR7bwVv4N+YRduDzhyHoEm9akkBEQefGK uI1I1g3HzqEWlevkiEkEGBECAAkFAkhkvewCGwwACgkQ5DrFzIvK5QVf8gCfSYtF oabsxcX3w9LgbBj4NRlTA40An3qlGHp6q+9N90WVPGXIlc8fRRzh =EIEG -----END PGP PUBLIC KEY BLOCK-----

如果你确实骚包,想给我发加密过的邮件,那就发吧,不过我不建议你这么骚包。