Skip to content

Instantly share code, notes, and snippets.

@kgriffs
Created February 29, 2012 21:19
Show Gist options
  • Save kgriffs/1944487 to your computer and use it in GitHub Desktop.
Save kgriffs/1944487 to your computer and use it in GitHub Desktop.
Encrypting a password with an RSA key on Windows
echo|set /p="toomanysecrets" | openssl rsautl -encrypt -inkey public-key.pem -pubin | openssl base64 > secret.txt
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment