Skip to content

Instantly share code, notes, and snippets.

@pjendrusik
Created September 2, 2014 07:30
Show Gist options
  • Save pjendrusik/b9bad97a5055ba2446d0 to your computer and use it in GitHub Desktop.
Save pjendrusik/b9bad97a5055ba2446d0 to your computer and use it in GitHub Desktop.
encrypt/decrypt text file
# 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