#File: GpgCheatSheet.sh v.1.1.0 docs at the end
man gpg
# how-to generate a personal gpg key
gpg --gen-key
# how-to encrypt a file for personal use
# the long version
gpg --encrypt --recipient 'Yordan Georgiev' FileName
gpg --encrypt --recipient 'Yordan Georgiev' GpgCheatSheet.sh
gpg --encrypt --recipient 'Yordan Georgiev' $file
#decrypted the encrypted file
gpg --output FileName.txt --decrypt FileName.txt.gpg
gpg --output GpgCheatSheet.sh --decrypt GpgCheatSheet.sh.gpg
gpg --output $file --decrypt $file.gpg
# how-to encrypt a file for someone else
gpg --import SomeOneElsesKeyFile.asc
# check that the import was successful
gpg --list-keys | less
# how-to encrypt a file for someone else
gpg --encrypt --recipient 'someone.else@domainName.com' foo.txt
# how-to decrypt a file from someone else
# note: you have to have the public key of this someone imported
gpg --output foo.txt --decrypt foo.txt.gpg
#encrypt all files in the current directory to myself
find . -type f -exec gpg --encrypt --recipient 'Yordan Georgiev' {} \;
#
# Purpose:
# to provide a simple cheat sheet for the basic gpg commands
# source: http://www.madboa.com/geek/gpg-quickstart/
#
# VersionHistory:
#
# 2012.04.19 - 23:54:19 --- ysg --- docs and to morphus 1.1.9
# 2011.06.24 - 12:24:43 --- ysg --- Initial creation
No comments:
Post a Comment
- the first minus - Comments have to be moderated because of the spammers
- the second minus - I am very lazy at moderating comments ... hardly find time ...
- the third minus - Short links are no good for security ...
- The REAL PLUS : Any critic and positive feedback is better than none, so your comments will be published sooner or later !!!!