Skip to content

Instantly share code, notes, and snippets.

@mmahadevan-okta
Forked from mmaha/Decode-Base64.md
Created November 25, 2013 19:03
Show Gist options
  • Save mmahadevan-okta/7646789 to your computer and use it in GitHub Desktop.
Save mmahadevan-okta/7646789 to your computer and use it in GitHub Desktop.

Perl

perl -MMIME::Base64 -ne 'print decode_base64($_)' ./saml_input.txt | xmllint --format - | source-highlight  -s xml -f esc

Ruby

cat ./saml_input.txt | ruby -r Base64 -ne 'puts Base64.decode64($_)' | xmllint --format - | source-highlight  -s xml -f esc
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment