Links

PGP Keys

Crear, listar y exportar clave PGP en Whonix

# Crear nueva clave
gpg --full-gen-key
# Exportar clave
gpg --export -a "$USERNAME"
# Listar claves
gpg --list-keys

Crear en otros OS standards

# Crear clave
gpg --encrypt --armor --no-comments --no-emit-version -r PUBLIC_KEY_OF_RECEPIENT

Verificar PGP signed message para demostrar identidad a terceros

# Verificar firma de cara a terceros
gpg --verify
###
# RECUERDA AÑADIR ALGÚN DATO INMUTABLE, COMO LA FECHA DEL DÍA O ALGO SIMILAR
# QUE NO SE PUEDA SPOOFEAR
###

Importar clave pública de un tercero

gpg --import
> [PublicKey]
[enter] + [CTRL-d]

Enviar mensaje encryptado

# A un remitente del cuál ya tenemos su clave pública importada
gpg --encrypt --armor -r $REMITENTEKEY
> [message...]
[enter] + [CTRL-d]

Desencryptar un mensaje recibido

gpg -d