Herramienta que genera una clave AES aleatoria de la clave GPG para cifrar archivos. El resultado se guarda por defecto en ~/.libsecrecy/. La herramienta nunca almacena la clave AES en texto plano, sino cifrada con GPG. Ver comando gpg.
$ gpg --list-secret-keys
$ gpg --full-generate-key
$ secrecy createKey AES256 USER@correo.es mykey
$ secrecy listKeys
$ secrecy setDefaultKey mykey
$ secrecy encrypt '' < secreto.txt > secreto2.txt.encrypted
$ secrecy encrypt mykey < secreto.txt > secreto.txt.encrypted
$ secrecy decrypt < secreto.txt.encrypted > secreto.txt.decrypted
1.-
Exportar la clave para compartirla con alguien (por ejemplo, con `amigo@ejemplo.org`):
$ secrecy exportKey mykey amigo@ejemplo.org > mi_clave_exportada.key
El destinatario necesitará tener su clave privada GPG asociada a amigo@ejemplo.org y luego hacer
$ secrecy importKey amigo@ejemplo.org < mi_clave_exportada.key