Created
September 12, 2018 13:35
-
-
Save selvakn/8ca9812d757cf7332f4568551c5679c2 to your computer and use it in GitHub Desktop.
This file contains hidden or 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/ruby | |
require 'base64' | |
require 'json' | |
secrets = JSON.parse STDIN.read | |
data = secrets['data'] | |
parsed_values = data.map{|(k,v)| [k, Base64.decode64(v) ]} | |
puts JSON.pretty_generate Hash[parsed_values] |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment