pratiks
8/10/2017 - 1:42 PM

JWT decoding command line

JWT decoding command line


# decode a base64 jwt to string 
echo eyJhbGciOiJSUzI1NiIsImtpZCI6Im1pY3Jvcy9oYy1ib3QtbWFuYWdlci9wc2hhaC1hZXNvODlpdmJqMjJiaGczIiwidHlwIjoiSldUIn0= | base64 -D

# decode a base64 jwt to string and see bytes 
echo eyJhbGciOiJSUzI1NiIsImtpZCI6Im1pY3Jvcy9oYy1ib3QtbWFuYWdlci9wc2hhaC1hZXNvODlpdmJqMjJiaGczIiwidHlwIjoiSldUIn0= | base64 -D | xxd