MoinMoin Logo
  • Comments
  • Immutable Page
  • Menu
    • Navigation
    • RecentChanges
    • FindPage
    • Local Site Map
    • Help
    • HelpContents
    • HelpOnMoinWikiSyntax
    • Display
    • Attachments
    • Info
    • Raw Text
    • Print View
    • Edit
    • Load
    • Save
  • Login

Navigation

  • Start
  • Sitemap
Revision 8 as of 2022-06-11 14:54:58
  • OpenPGP

OpenPGP

OpenPGP encryption and signing tool

Encrypt - decrypt

   1 gpg --version # gpg (GnuPG) 1.4.23
   2 echo "aaa" > test.txt
   3 gpg --symmetric text.txt # creates encrypted file test.txt.gpg
   4 gpg --output x.txt --decrypt test.txt.gpg
   5 diff test.txt x.txt

Send file encrypted with symmetric key by email in CentOS 6.3

  • /usr/bin/gpg-agent --daemon /usr/bin/gpg --yes --batch --passphrase symmetricPass -c file.txt
  • /bin/cat /root/file.txt.gpg | /bin/mail -s "subject xyz" mail.me@example.net

  • gpg --version # gpg (GnuPG) 2.0.14

Decrypt file encrypted with symmetric key in CentOS 6.3

  • gpg-agent --daemon gpg --yes --batch --passphrase symmetricPass bh.file.txt.gpg

Decrypt file encrypted with symmetric key in Slackware 14

  • gpg --passphrase symmetricPass file.txt.gpg
  • gpg --version # gpg (GnuPG) 1.4.12

Install pass command

  • https://www.passwordstore.org/

the standard unix password manager (~/.password-store/)

   1 sudo apt install pass
   2 pass init "userx password storage key"
   3 gpg --full-generate-key # 1 3072 0 
   4 Real name: userx
   5 Email address: userx@bitarus.allowed.org
   6 Passphrase: ********
   7 gpg --list-keys
   8 pass init 999999999999999999999999a9aa9a9a9a99a
   9 pass add svc/user
  10 pass add svc/pwd
  11 pass list
  • MoinMoin Powered
  • Python Powered
  • GPL licensed
  • Valid HTML 4.01