golang illegal base64 data at input byte

//one reason is whitespace
ciphertext = strings.Replace(ciphertext, " ", "", -1)

k, err0 := base64.StdEncoding.DecodeString(ciphertext)

  

原文地址:https://www.cnblogs.com/allenhaozi/p/6023835.html