This is a maintained fork of the abandoned original
You can use crypt as a command line tool or as a configuration library:
Watch Kelsey explain
crypt in this quick 5 minute video:
Generating gpg keys and keyrings
The crypt cli and config package require gpg keyrings.
Create a key and keyring from a batch file
%echo Generating a configuration OpenPGP key
Name-Comment: app configuration key
Run the following command:
gpg2 --batch --armor --gen-key app.batch
You should now have two keyrings,
.pubring.gpg which contains the public keys, and
.secring.gpg which contains the private keys.
Note the private key is not protected by a passphrase.