Skip to content

Instantly share code, notes, and snippets.

@floehopper
Created June 11, 2018 10:31
Show Gist options
  • Save floehopper/a82bdb780c4a4ddd1c32ee060405b320 to your computer and use it in GitHub Desktop.
Save floehopper/a82bdb780c4a4ddd1c32ee060405b320 to your computer and use it in GitHub Desktop.
$ wget https://github.com/<username>.keys
$ ssh-keygen -e -f <username>.key -m PKCS8 > <username>.key.pkcs8
$ openssl rsautl -encrypt -pubin -inkey <username>.key.pkcs8 -in plain.txt -out encrypted.txt
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment