Confidentialty - Quick start
Here you find a quick walk through on the topics of key generation and typical usages certificates.
Generating a key
To generate a key with sq, you can use the following command:
$ sq key generate --own-key --name 'alice' --email 'alice@example.com'
Export a key from the keystore into a file
$ sq key export --cert $FINGERPRINT > $KEYFILE
Import a key into keystore
If a key is only available as a file, it can be imported into the keystore:
$ sq key import $KEYFILE
Encrypt and decrypt a file
To encrypt a message or a file with another person's certificate, you can use 'sq encrypt' as it is shown here:
$ sq encrypt --for-email alice@example.com message.txt
To decrypt a file using a key in the keystore, you can use 'sq decrypt' as follows:
$ sq decrypt message.pgp