How to encrypt a file with a passphrase, without using a gpg key

Solution Verified - Updated -


  • How can files be encrypted/decrypted using simply a passphrase (i.e., without using public/private gpg keys)?


  • gpg provided by gnupg/gnpug2 rpms
  • openssl provided by openssl rpm
  • Red Hat Enterprise Linux 6
  • Red Hat Enterprise Linux 5
  • Red Hat Enterprise Linux 4

Subscriber exclusive content

A Red Hat subscription provides unlimited access to our knowledgebase of over 48,000 articles and solutions.

Current Customers and Partners

Log in for full access

Log In