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

Solution Verified - Updated -

Issue

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

Environment

  • 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, tools, and much more.

Current Customers and Partners

Log in for full access

Log In

New to Red Hat?

Learn more about Red Hat subscriptions

Using a Red Hat product through a public cloud?

How to access this content