Skip to main content

24 posts tagged with "JWT"

JSON Web Tokens (JWT), How They Are Built, Signed, Read and Checked

View All Tags

Fixed: The input is not a valid Base-64 string as it contains a non-base 64 character, more than two padding characters, or an illegal character among the padding characters

· 6 min read
Jagdish Kumawat
Founder @ Dewiride

I passed one part of a JSON Web Token (JWT) to PowerShell's [Convert]::FromBase64String, and it refused with The input is not a valid Base-64 string as it contains a non-base 64 character, more than two padding characters, or an illegal character among the padding characters. The part was base64url, which differs from base64 in two ways, and fixing only one of them isn't enough.