title: encrypting/decrypting password stored in config file
body: <p>I have a simple Bash script automating tasks which require password-based authentication.
  Currently I store the credentials in plain text:</p>
  
  <pre><code>$ cat ~/.myconfig
  username=foo
  password=bar
  </code></pre>
  
  <p>Obviously that's bad - so I wonder whether there's a simple way to encrypt/decrypt the password using my public/private key pair. Using Yet Another Password for the encryption wouldn't gain much, so I want it to happen pretty much automatically.</p>
  
  <p>I've done some research (around here and elsewhere), but am way out of my depth on this one...</p>