Created
September 2, 2014 07:30
-
-
Save pjendrusik/b9bad97a5055ba2446d0 to your computer and use it in GitHub Desktop.
encrypt/decrypt text file
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
# encrypt | |
openssl rsautl -encrypt -pubin -inkey pawel.jendrusik.id_rsa.pem.pub -ssl -in myMessage.txt -out myEncryptedMessage.txt | |
# decrypt | |
openssl rsautl -decrypt -inkey ~/.ssh/id_rsa -in passwords_pawel_jendrusik_encrypted.txt -out li_de_new_pass.txt |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment