Skip to content

Instantly share code, notes, and snippets.

@mmaha
Last active December 12, 2020 13:15
Show Gist options
  • Save mmaha/7645256 to your computer and use it in GitHub Desktop.
Save mmaha/7645256 to your computer and use it in GitHub Desktop.
Decode SAML Assertion in Base64

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