Created
July 19, 2012 15:28
-
-
Save werebus/3144676 to your computer and use it in GitHub Desktop.
Ruby openssl decrypt
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
$ echo "This is a secret file" | openssl enc -aes-256-cbc > secret.txt |
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
#!/usr/bin/env ruby | |
secret = `openssl enc -d -aes-256-cbc -in secret.txt` | |
puts secret |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment