Advertisement
hd1

OpenPGPClipboard

hd1
Oct 22nd, 2014
336
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Bash 0.25 KB | None | 0 0
  1. #!/bin/sh -c
  2. # takes the string from the clipboard...
  3. export CLIPBOARD_CONTENTS=`pbpaste`
  4. # signs it using your GPG key
  5. export GPG_SIGNED=`echo $CLIPBOARD_CONTENTS | gpg -as -`
  6. # and writes it back to the clipboard for pasting
  7. echo $GPG_SIGNED | pbcopy
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement