Go has RawStdEncoding which makes this unnecessary:
|
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