function encrypt(){ # This function, given a recipient, $PUBKEY; a file to encrypt, $TMP_NOTE; and an # output file, "$NOTE", will encrypt $TMP_NOTE to $NOTE against $PUBKEY's private # GPG key. gpg -r "$PUBKEY" -o "$NOTE" -e "$TMP_NOTE" } function decrypt(){ # This function, given a recipient, $PUBKEY; a file to decrypt, $TMP_NOTE; and an # output file, "$NOTE", will decrpyt $TMP_NOTE to $NOTE against $PUBKEY's private # GPG key. gpg -d "$NOTE" }