Skip to content

Instantly share code, notes, and snippets.

@shgysk8zer0
Last active March 28, 2020 19:03
Show Gist options
  • Star 1 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save shgysk8zer0/3b803b33b6b44f1315d38dd8f95dcd07 to your computer and use it in GitHub Desktop.
Save shgysk8zer0/3b803b33b6b44f1315d38dd8f95dcd07 to your computer and use it in GitHub Desktop.
Bash script to decrypt data from clipboard
#!/bin/bash
# Save this script to anywhere in `$PATH`, but ideally as `/usr/local/bin/clipcrypt`
# Grant read/execute permissions `chmod 755 /usr/local/bin/clipcrypt`
# Optionally, make root the owner `sudo chown root:root /usr/local/bin/clipcrypt`
xclip -selection clipboard -o | gpg -d | xclip -selection clipboard
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment