Skip to content

Commit

Permalink
notes
Browse files Browse the repository at this point in the history
  • Loading branch information
BostX committed May 29, 2024
1 parent 1ea7f39 commit c0b554b
Showing 1 changed file with 10 additions and 0 deletions.
10 changes: 10 additions & 0 deletions notes/thgtoa.scrbl
Original file line number Diff line number Diff line change
Expand Up @@ -94,6 +94,16 @@
gpg --decrypt file.txt.gpg --output file.txt
gpg --decrypt --quiet --for-your-eyes-only --no-tty ~/.passwords/gmail.gpg

# Encrypt Both File Content and Filename
# -c --symmetric
# -o --output
echo "file.txt" | gpg -c --cipher-algo AES256 -o filename.gpg && \
gpg -c --cipher-algo AES256 -o filecontent.gpg file.txt
# Decrypt the Filename and File Content
gpg --decrypt filename.gpg > decrypted_filename.txt && \
gpg --decrypt filecontent.gpg > "$(cat decrypted_filename.txt)" && \
rm decrypted_filename.txt # or permanent delete by `shred`

# -A NUM, --after-context=NUM
# man gpg | grep --after-context=2 show-usage
Key usage / flags: E=encryption, S=signing, C=certification, A=authentication
Expand Down

0 comments on commit c0b554b

Please sign in to comment.