Skip to content

Instantly share code, notes, and snippets.

View mmahadevan-okta's full-sized avatar

Madhu Mahadevan mmahadevan-okta

View GitHub Profile

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