Author Topic: Piping data using gpg..  (Read 1229 times)

0 Members and 1 Guest are viewing this topic.

Offline frog

  • Knight
  • **
  • Posts: 232
  • Cookies: 16
    • View Profile
Piping data using gpg..
« on: August 24, 2012, 10:32:13 pm »
I have an idea for a program and I was considering using gpg and keys/rings when I came across some useful information about how to pipe data in and out using gpg. I ended up deciding not to use gpg b/c keeping sets of keys/rings is a pain in the ass. Anyways, here's the fruit.

echo "Data to be encrypted" | gpg --encrypt -r <yourid> | gpg --decrypt -r <yourid>