Home

How to send me secrets

Gunar Gessner

Gunar Gessner

Aug 28, 2021

To send me secrets, please encrypt them using my GPG key.

Here's how to do it from the command line:

# Import my public key
curl -L https://gunar.uk/gunar.pub.key | gpg --import
# Encrypt secrets.txt using my key
gpg --encrypt --armor --recipient gunar@gunargessner.com <secrets.txt >encrypted.txt

Now the contents of encrypted.txt should look something like this:

-----BEGIN PGP MESSAGE-----
hQEMA27ixXDTzgLyAQf/ftCzhzDL2S1xGEh9zAYVVfSmyci1Os3EpxFTEtVEjCfk
dPbMoQ382/bA1fvM/h8Fu84bMqDi7qxWksU2GnC1pZk42wbOITtNtRv0S2M0SBEe
KkcU8PTL0tO7ePdez9O7nkyO3A8cnj3yrHMXjgpHK/ENZ3W6cV+pG5Tkzk976RFQ
-----END PGP MESSAGE-----

PS: For binary data (e.g. images or other larger files) please encrypt without the --armor argument so that it will generate a (smaller) binary output.


Sign up for the newsletter


Read other stuff