Skip to content

Instantly share code, notes, and snippets.

@werebus
Created July 19, 2012 15:28
Show Gist options
  • Save werebus/3144676 to your computer and use it in GitHub Desktop.
Save werebus/3144676 to your computer and use it in GitHub Desktop.
Ruby openssl decrypt
$ echo "This is a secret file" | openssl enc -aes-256-cbc > secret.txt
#!/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