Last active
March 2, 2019 20:49
-
-
Save varshavaradarajan/a8fe3cc580a105f14ea6b9a8d73ed4e9 to your computer and use it in GitHub Desktop.
This file contains 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
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