The input is not a valid Base-64 string how to solve
I have the following code: var test = "eyJhbGciOiJSUzI1NiIsImtpZCI6IlRlc3RDZXJ0IiwidHlwIjoiYXQrand0In0"; var base64EncodedBytes = System.Convert.FromBase64String(test); var hidenString = System.Text.Encoding.UTF8.GetString(base64EncodedBytes); and I get the following error: ‘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.’ Any help? how do… Read More The input is not a valid Base-64 string how to solve