Date: 29th October, 2023
About and instalation of GPG (GNU Privacy Guard)#
GPG (GNU Privacy Guard) is a complete and free implementation of the OpenPGP standard.
On Archlinux using yay: yay -S core/gnupg
Encryption / Decryprion#
Encrypt file or folder (compress the folder) (Self Encrypt):
gpg --encrypt --recipient [email protected] folfer-or-file.tar.gzEncrypt for multiple people to decrypt:
gpg --encrypt --recipient [email protected] --recipient [email protected] xyz.txtDecrypt to terminal:
gpg --decrypt snap.xyz.gpgDecrypt to file:
gpg --output snap_dec2 --decrypt snap.tar.gz.Export Keys#
Export public key:
gpg --export --armor [email protected] > pubkey.ascExport Private key:
gpg --export-secret-keys --armor [email protected] > privkey.asctar the keys:
tar -czvf gpg_folder.tar.gz gpg_folderbackup in cloud.
to import these keys on a new device or secure server:
gpg --import pubkey.asc
gpg --import privkey.ascnext, trust keys:
gpg --edit-key [email protected]
trust
5
quitEncrypt Passwords using pass#
About Pass: Stores, retrieves, generates, and synchronizes passwords securely
yay -S extra/pass
pass init [email protected]
pass insert outlookGenerate complex passwords: pass generate genrate-example 30
pass insert work/company1/email