Saturday, April 27, 2024
HomeGolangBase64 DecodeString believes "password" is encoded - Getting Assist

Base64 DecodeString believes “password” is encoded – Getting Assist


When making an attempt to find out is a string is encoded by utilizing base64.StdEncoding.DecodeString() the string “password” is taken into account to be encoded. Thus when making an attempt to decode the string, malformed ciphertext error is returned.

An instance could be seen right here: Go Playground – The Go Programming Language

The anticipated outcome can be a error.

Ought to this be thought of a bug or an anomaly?

Is there a greater, extra dependable technique to find out is a string is encoded?

Given the bytes 165 171 44 194 138 221, password is a legitimate (the one legitimate) base64 encoded illustration of precisely these bytes.

This matter was robotically closed 90 days after the final reply. New replies are not allowed.

RELATED ARTICLES

LEAVE A REPLY

Please enter your comment!
Please enter your name here

Most Popular

Recent Comments