#!/bin/sh echo "hello world" | gpg --encrypt -a -r test@example.org > /tmp/enc gpg --decrypt /tmp/enc echo "foo" | gpg --sign -a > /tmp/signed gpg --verify /tmp/signed