Skip to content

Instantly share code, notes, and snippets.

@tlopo
Forked from mmaha/Decode-Base64.md
Created December 12, 2020 13:15
Show Gist options
  • Save tlopo/26603405fc21995ecf068e26e915b9f0 to your computer and use it in GitHub Desktop.
Save tlopo/26603405fc21995ecf068e26e915b9f0 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