Skip to content

Instantly share code, notes, and snippets.

@ku
Created August 5, 2017 13:17
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save ku/fc9205014cf5de3f815c1e19ccdaf283 to your computer and use it in GitHub Desktop.
Save ku/fc9205014cf5de3f815c1e19ccdaf283 to your computer and use it in GitHub Desktop.
encrypt with github public key
echo hello | openssl rsautl -encrypt -pubin -inkey <(ssh-keygen -e -m PKCS8 -f <(curl -s https://github.com/ku.keys)) \
| 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