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
Unknown action login.
  • OpenPGP

Contents

  1. OpenPGP
    1. Encrypt - decrypt
    2. Send file encrypted with symmetric key by email in CentOS 6.3
    3. Decrypt file encrypted with symmetric key in CentOS 6.3
    4. Decrypt file encrypted with symmetric key in Slackware 14
    5. Install pass command
    6. Post Quantum Computing

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

Post Quantum Computing

  • ML-KEM (Kyber)
    • ML-KEM-512
    • ML-KEM-768
    • ML-KEM-1024

   1 sudo apk add openssl 
   2 gpg --full-generate-key 
   3 gpg --armor --export bob@example.com > bob.asc
   4 gpg --import bob.asc # import pub key
   5 echo "hello" > report.txt
   6 gpg --encrypt --recipient bob@example.com report.txt # report.txt.gpg
   7 gpg --decrypt report.txt.gpg > report1.txt
  • BIP-39 mnemonic phrases ML-KEM 768 , ML-KEM 1024
  • PGP word list
  • Diceware
  • Mnemonic encoding 256 word dictionary
  • MoinMoin Powered
  • Python Powered
  • GPL licensed
  • Valid HTML 4.01