Skip to content

Instantly share code, notes, and snippets.

@varshavaradarajan
Last active March 2, 2019 20:49
Show Gist options
  • Save varshavaradarajan/a8fe3cc580a105f14ea6b9a8d73ed4e9 to your computer and use it in GitHub Desktop.
Save varshavaradarajan/a8fe3cc580a105f14ea6b9a8d73ed4e9 to your computer and use it in GitHub Desktop.
ssh-keygen
ssh-keygen -f ~/.ssh/id_rsa.pub -e -m PKCS8 > id_rsa.pem.pub
echo 'hello world' > foo.txt
sudo apt-get install openssl
curl https://raw.githubusercontent.com/kennethreitz/pipenv/master/get-pipenv.py | sudo python3
pipenv install requests
openssl rsautl -encrypt -pubin -inkey id_rsa.pem.pub -ssl -in foo.txt -out foo.txt.enc
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment