<commit_before># gpg

## Bootstrapping your terminal with `gpg` and `keybase`

A more verbose procedure is available at https://github.com/pstadler/keybase-gpg-github
([local copy](ptradler-keybase-gpg-github.md)).

`keybase` is recommended for its simplicity and convenience but it is really optional.

```shell
# install gnu gpg suite; for example, on OSX you can run
brew cask install gpg-suite

# download the keybase app; for example, on OSX you can run
brew cask install keybase

# set up a keybase account, proofs and a gpg key

# import keybase key into gpg suite's keychain
keybase pgp export | gpg --import
keybase pgp export --secret | gpg --import --allow-secret-key-import
```


## Search for a key in `keybase` and import it

```shell
keybase search <recipient>
curl https://keybase.io/<recipient>/key.asc | gpg --import -
```


## Search for a key on a `pgp` server and import it

```shell
gpg --search-keys <recipient>
gpg --recv <recipient-key-id>
```
<commit_msg>Update bootstrap-gpg.md<commit_after># gpg

## Bootstrapping your terminal with `gpg` and `keybase`

A more verbose procedure is available at https://github.com/pstadler/keybase-gpg-github
([local copy](pstradler-keybase-gpg-github.md)).

`keybase` is recommended for its simplicity and convenience but it is really optional.

```shell
# install gnu gpg suite; for example, on OSX you can run
brew cask install gpg-suite

# download the keybase app; for example, on OSX you can run
brew cask install keybase

# set up a keybase account, proofs and a gpg key

# import keybase key into gpg suite's keychain
keybase pgp export | gpg --import
keybase pgp export --secret | gpg --import --allow-secret-key-import
```


## Search for a key in `keybase` and import it

```shell
keybase search <recipient>
curl https://keybase.io/<recipient>/key.asc | gpg --import -
```


## Search for a key on a `pgp` server and import it

```shell
gpg --search-keys <recipient>
gpg --recv <recipient-key-id>
```

{'fraction_non_alphanumeric': 0.11049163710086163, 'fraction_numerical': 0.0, 'mean_word_length': 4.01015228426396, 'pattern_counts': {'":': 0, '<': 11, '<?xml version=': 0, '>': 11, 'https://': 4, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 2, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '6304781', 'n_tokens_mistral': 665, 'n_tokens_neox': 631, 'n_words': 255}