OpenBSD - gpg
gpg stuff
generate key
gpg --generate-key
change Passphrase
gpg --change-passphrase user-id
import key
gpg --import 92FFBB90C18B59AEF311F9C5D2E39FFEAC507F67.pub.gpg
list key
gpg -k
sample
root@host # gpg -k
[keyboxd]
---------
pub ed25519 2024-01-02 [SC] [expires: 2027-01-01]
F7118E072D426449DD9E4DE29674836DB8FECEDA
uid [ultimate] root <root@host>
sub cv25519 2024-01-02 [E] [expires: 2027-01-01]
encrypt
-r recipient -e encrypt
date > date
gpg -r F7118E072D426449DD9E4DE29674836DB8FECEDA -e date
sample
root@host # gpg -r F7118E072D426449DD9E4DE29674836DB8FECEDA -e date
root@host# ll date*
-rw-r--r-- 1 root wheel 29 Jan 2 15:14 date
-rw-r--r-- 1 root wheel 200 Jan 2 15:15 date.gpg
root@host# file date*
date: ASCII text
date.gpg: data
decrypt
-d decrypt