From 6a9ee64caee52b935d0a06a2be848a344f334812 Mon Sep 17 00:00:00 2001 From: thetechprepper Date: Thu, 19 Mar 2026 10:21:20 -0700 Subject: [PATCH] offline - Added a section on creating an ECC key pair --- .../Desktop/offline/crypto/gpg-cheatsheet.md | 35 ++++++++++++++++--- 1 file changed, 31 insertions(+), 4 deletions(-) diff --git a/overlay/etc/skel/Desktop/offline/crypto/gpg-cheatsheet.md b/overlay/etc/skel/Desktop/offline/crypto/gpg-cheatsheet.md index 4de6557..fe639a1 100644 --- a/overlay/etc/skel/Desktop/offline/crypto/gpg-cheatsheet.md +++ b/overlay/etc/skel/Desktop/offline/crypto/gpg-cheatsheet.md @@ -114,6 +114,32 @@ gpg: depth: 1 valid: 1 signed: 0 trust: 0-, 0q, 0n, 0m, 1f, 0u gpg: Good signature from "AmRRON Actual (ECC) " [full] ``` + +## Create Key + +Generate a new private/public key pair using ECC. It is a modern +standard that provides strong security and works well for radio use +due to smaller key sizes. + +1. Create a primary key for signing using ECC. Replace FIRSTNAME, + LASTNAME, and EMAIL (keep the < and > characters). + + gpg --quick-generate-key "FIRSTNAME LASTNAME " ed25519 sign 0 + +2. List your keys and identify the fingerprint of your new key. + + gpg --list-keys + +3. Generate an encryption subkey. Replace FINGERPRINT. + + gpg --quick-add-key FINGERPRINT cv25519 encrypt 0 + +4. List your keys again. You should now see a subkey that is suitable + for encryption (`[E]`). + + gpg --list-keys + + ## List Private Keys List the current private keys on your system. @@ -122,11 +148,11 @@ List the current private keys on your system. gpg --list-secret-keys ``` -## Create Key -``` -gpg --full-generate-key -``` +## Sign File + +TODO + ## Encrypt File @@ -134,6 +160,7 @@ gpg --full-generate-key gpg -e -r RECIPIENT file.txt ``` + ## Decrypt File ```