Last active
March 28, 2020 19:03
-
-
Save shgysk8zer0/3b803b33b6b44f1315d38dd8f95dcd07 to your computer and use it in GitHub Desktop.
Bash script to decrypt data from clipboard
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/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