Added gpg key commands

This commit is contained in:
2025-11-07 20:32:03 +01:00
parent 9de031127f
commit 4ab9fab20b
+34
View File
@@ -82,5 +82,39 @@
"command": "git remote set-url origin git@github.com:username/repo.git", "command": "git remote set-url origin git@github.com:username/repo.git",
"desc": "Change origin url (example from https to ssh)" "desc": "Change origin url (example from https to ssh)"
} }
],
"gpg": [
{
"command": "gpg --list-keys",
"desc": "List all imported keys"
},
{
"command": "gpg --import pubkey.asc",
"desc": "Import a downloaded key"
},
{
"command": "gpg --encrypt --sign --recipient RECIPIENT_KEY_ID message.txt",
"desc": "Encrypts message.txt with the recipients key into message.txt.gpg"
},
{
"command": "gpg --decrypt message.asc",
"desc": "Decrypt a file with a encrypted message"
},
{
"command": "gpg --export -a KEY_ID > publickey.asc",
"desc": "Export a existing (public) key into a file"
},
{
"command": "gpg --fingerprint KEY_ID",
"desc": "Check fingerprint of key"
},
{
"command": "gpg --sign-key RECIPIENT_KEY_ID",
"desc": "Sign a key"
},
{
"command": "gpg --keyserver hkps://keys.openpgp.org --send-keys RECIPIENT_KEY_ID",
"desc": "Send a signed key to a keyserver"
}
] ]
} }