Skip to content

Unnecessary custom base64 implementation #5

@joonas-fi

Description

@joonas-fi

Go has RawStdEncoding which makes this unnecessary:

jwt/token.go

Line 247 in 1639fcf

func Base64Encode(src []byte) []byte {

Not trying to nitpick here, rather I think security-wise it's dangerous as a concept to mutate untrusted input data before it's fed to a signature validation algorithm

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