Debian Codegraph @

README.md

raw
1 # crypt
2
3 You can use crypt as a command line tool or as a configuration library:
4
5 * [crypt cli](bin/crypt)
6 * [crypt/config](config)
7
8 ## Demo
9
10 Watch Kelsey explain `crypt` in this quick 5 minute video:
11
12 [![Crypt Demonstration Video](https://img.youtube.com/vi/zYpqqfuGwW8/0.jpg)](https://www.youtube.com/watch?v=zYpqqfuGwW8)
13
14 ## Generating gpg keys and keyrings
15
16 The crypt cli and config package require gpg keyrings.
17
18 ### Create a key and keyring from a batch file
19
20 ```
21 vim app.batch
22 ```
23
24 ```
25 %echo Generating a configuration OpenPGP key
26 Key-Type: default
27 Subkey-Type: default
28 Name-Real: app
29 Name-Comment: app configuration key
30 Name-Email: [email protected]
31 Expire-Date: 0
32 %pubring .pubring.gpg
33 %secring .secring.gpg
34 %commit
35 %echo done
36 ```
37
38 Run the following command:
39
40 ```
41 gpg2 --batch --armor --gen-key app.batch
42 ```
43
44 You should now have two keyrings, `.pubring.gpg` which contains the public keys, and `.secring.gpg` which contains the private keys.
45
46 > Note the private key is not protected by a passphrase.