Skip to content

decode not working with some data #12

@crazyjat

Description

@crazyjat

The following encoded string will fail with the error "The string to be decoded is not the correct length for a base64 encoded string."

eyJzdWIiOiJqMTIzNDU2NzhAYWEuY29tIiwicm9sZSI6IkFETUlOSVNUUkFUT1IiLCJpZGxlIjoiMTIwIiwiaXNzIjoiaHR0cHM6Ly9leGFtcGxlcy5jb20iLCJhdWQiOiJodHRwczovL2V4YW1wbGVzLmNvbSIsImV4cCI6MTQ1MjIwOTE0MywibmJmIjoxNDUyMjA5MDIzfQ

However, the above encoded string is a valid base64 encoded string. I have verified that it correctly decodes with the following online base64 decoders:

https://www.base64decode.org/
http://base64decode.net/

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions