title: How can I create a self-contained encrypted file on Linux?
body: <p>I recently went through this little noob adventure on a Linux desktop:</p>
  
  <ol>
  <li>Take a text file with sensitive info</li>
  <li>PGP-encrypt it (e.g. with Seahorse)</li>
  <li>Back it up</li>
  <li>Reinstall OS, erase hard drive, drop computer in pool, etc, etc</li>
  <li>Retrieve the encrypted file from backup, and gasp in horror to realize you can't decrypt it, even though you know the password, cause you didn't back up ~/.gnupg where your key was stored.</li>
  </ol>
  
  <p>Why did I fall for this? Cause I used to be a Mac user, where I would create an encrypted sparse disk image, drop my file in it, and unmount. I could move this file all over the place, drop it onto any mac, mount, enter the password, and ta-da! As long as I remembered the password, all was good.</p>
  
  <p>Anyone know how to do something like that with Linux?</p>
  
  <p>(I hope this is related enough to programming for SOF... it's important for my programming job anyway!)</p>