Skip to content

Instantly share code, notes, and snippets.

@acomagu
Last active March 31, 2021 09:40
Show Gist options
  • Save acomagu/f77530f45bad13f37079994393086ab2 to your computer and use it in GitHub Desktop.
Save acomagu/f77530f45bad13f37079994393086ab2 to your computer and use it in GitHub Desktop.
Script to encrypt/decrypt short message with the SSH public key on GitHub.
echo abc | openssl rsautl -encrypt -pubin -inkey <(ssh-keygen -f <(curl https://github.com/acomagu.keys) -e -m PKCS8) | openssl rsautl -decrypt -inkey ~/.ssh/id_rsa
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment