Keybase中的PGP

keybase 是一個端點加密的通信軟體,在這市面上有許多端點加密的軟體在我們身邊,只是我們完全沒有感覺,或是不知道他的特別。比如說 Facebook messenger and Line 裡面的 悄悄話功能;Telergram 中的 秘密聊天功能;Metrix Riot 的實驗性功能端點加密聊天。執得一提的是,上述中的端點加密功能,都不是預設的,需要比較有隱私潔癖的人才會主動去開啟這些功能。當然也有其他軟體預設去起動的,如史諾登推薦的Signal、Keybase、Whatsapp。

Okay,上面提到了許多端點加密的場景,但是各家通信軟體只是把他們包成了自己的服務,僅僅作為通訊。但”Keybase”把端點加密做成了工具,他自己維護了一個庫,提供,生成pgp私鑰、pgp公鑰、pgp指紋,甚至不只是生成參數,他也可以利用pgp私鑰簽名文件或是信息,透過pgp公鑰去認證文件,又或是透過pgp公鑰加密文件,再透過pgp私鑰解密文件。上述的的功能都在keybase 指令中,如下所示:

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
NAME:
keybase pgp - Manage keybase PGP keys

USAGE:
keybase pgp <command> [arguments...]

COMMANDS:
gen Generate a new PGP key and write to local secret keychain
pull Download the latest PGP keys for people you follow.
update Update your public PGP keys on keybase with those exported from the local GPG keyring
select Select a key from GnuPG as your own and register the public half with Keybase
sign PGP sign a document.
encrypt PGP encrypt messages or files for keybase users
decrypt PGP decrypt messages or files for keybase users
verify PGP verify message or file signatures for keybase users
export Export a PGP key from keybase
import Import a PGP key into keybase
drop Drop Keybase's use of a PGP key
list List the active PGP keys in your account.
purge Purge all PGP keys from Keybase keyring
push-private Export PGP keys from GnuPG keychain, and write them to KBFS.
pull-private Export PGP from KBFS and write them to the GnuPG keychain

keybase 可能也考慮到指令介面不是很友善,也做了一個網站的版本

  1. 加密的頁面(https://keybase.io/encrypt)
  2. 解密的頁面(https://keybase.io/decrypt)
  3. 簽名的頁面(https://keybase.io/sign)
  4. 驗證的頁面(https://keybase.io/verify)

可以在自己keybase 網頁中找到pgp公鑰:

keybase 網頁中更詳細的 pgp信息:

下面的公鑰是我的公鑰

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
 ~ keybase pgp export
-----BEGIN PGP PUBLIC KEY BLOCK-----
Comment: https://keybase.io/download
Version: Keybase Go 2.12.4 (darwin)

xsFNBFwoyUkBEACn9MeFu/DlDbFu58AxIR5RzbVrEGY61AQdL36P9VmHT2w4q2mG
3hHVacdQ7oQp2GtBAc1JR82TNPOM0knvbbZ/HRHn9+htWLQmnL2/z1AvReDcDHbm
hledcVlhgV10e0oXNr5///YHOHq8p+eT4AeTBV4aRLzlLOR8r06qahnhSeTevkQz
hBh6ZCCcUVK7EuTX+DiIdYraJcbBFl+yB+D9Udqr2CFjY8DrZV9yqR21HcSfDIZA
kLo0HJt+lACOrpM1s1iEyCgblkuxbEGWxkf24UPrWWm8nfeJzhN8kKhSr5N1kpy7
9s+aHdKAFerbquz/ya8gGULSpVp2W44BihbfIuX+TAlZkP5r19/C+SxLlqB1uEZr
kp6bEnskyTLw6TWt+ObN0bbuUeeJHZWDKy3PS9nXzqi8gEGqnYeEZ8utriVmVZG5
kXTzDG5fe9KSMep6Gy7JIevgVx87Kb5E59oZGGtZjBDSbx81EOP+1nhJQvo2zKv1
44H1DKpJHjaHGG8I3xB8FXy5Rzwt8TP9OU5cslS+izma952UaTXDdS5C22Wk77fc
fIWwR3sdhmuhutC63EFM2bJaS/jVR+FfkCMJrPG1FHF0CUrxfHRLMVtu5dx78s7C
uYH/7uZMI9RSHvv951xz2RQDgjeYvWOXbcnyEZa2oebW6vmhOLm1DWPHxQARAQAB
zSRjaGVuIHBvIHdlaSA8MDEzNjAwODZAbWUubWN1LmVkdS50dz7CwXgEEwEIACwF
AlwoyUkJEPFckc2TrDYXAhsDBQkeEzgAAhkBBAsHCQMFFQgKAgMEFgABAgAAc6MQ
ABrjNCuV9WdmrQMvgPM9Ai3GcG3ui0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JSumRA==
=J1A8
-----END PGP PUBLIC KEY BLOCK-----

評論

Your browser is out-of-date!

Update your browser to view this website correctly. Update my browser now

×