Skip to content


What Where
Official Page

Using a symmetric cypher (AES 256)

Encrypt with symmetric cypher

gpg --symmetric --cipher-algo aes256 -o test.txt.gpg test.txt

Decrypt with symmetric cypher

gpg -d -o test.txt test.txt.gpg

Email setup

Generate Key

gpg --full-generate-key

Export Key

gpg --list-keys
gpg --output mygpgkey_pub.gpg --armor --export ABCDFE01
gpg --output mygpgkey_sec.gpg --armor --export-secret-key ABCDFE01

Alternativly output to console: gpg --armor --export ABCDFE01

Copy Keys

scp mygpgkey_pub.gpg mygpgkey_sec.gpg user@remotehost:~/

Import Key

gpg --import ~/mygpgkey_pub.gpg
gpg --allow-secret-key-import --import ~/mygpgkey_sec.gpg
rm ~/mygpgkey_sec.gpg ~/mygpgkey_pub.gpg
gpg --list-keys

Publish Public Key to Key Server

Key Server

Public Key Server Services

gpg --keyserver --send-keys 8CC3D3CDE700B7DE

Search entry on Key Server

gpg --keyserver hkp:// --search-key ''

Alternativly use the webinterface e.g.

Back to top