golang illegal base64 data at input byte

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

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

  

posted @ 2016-11-02 17:45  hao.ma  阅读(11405)  评论(0编辑  收藏  举报