From 2a0542b6afdec23ee9824968e384756b164b5f01 Mon Sep 17 00:00:00 2001 From: thetechprepper Date: Thu, 19 Mar 2026 10:49:19 -0700 Subject: [PATCH] offline - Added a section on how to sign a file --- .../Desktop/offline/crypto/gpg-cheatsheet.md | 28 ++++++++++++++++++- 1 file changed, 27 insertions(+), 1 deletion(-) diff --git a/overlay/etc/skel/Desktop/offline/crypto/gpg-cheatsheet.md b/overlay/etc/skel/Desktop/offline/crypto/gpg-cheatsheet.md index 38f2775..8cf3d72 100644 --- a/overlay/etc/skel/Desktop/offline/crypto/gpg-cheatsheet.md +++ b/overlay/etc/skel/Desktop/offline/crypto/gpg-cheatsheet.md @@ -151,7 +151,33 @@ gpg --list-secret-keys ## Sign File -TODO +Signing a file allows recipients to verify the sender is authentic +and that the file has not been modified in transit. + +Create a test file: + + echo "This is a test file for gpg training." > file.txt + +There are two common ways to sign a file. + + +### Embedded Signature + +Create a single text file that contains both the message and the +signature. + + gpg --clearsign file.txt + +This creates: + + file.txt.asc + + +### Detached Signature (ASCII) + +Create a separate ASCII signature file for the original file. + + gpg --armor --detach-sign file.txt ## Encrypt File