How do I encode a string to base64 using only boost?

前端 未结 9 1039
南方客
南方客 2020-12-04 10:53

I\'m trying to quickly encode a simple ASCII string to base64 (Basic HTTP Authentication using boost::asio) and not paste in any new code code or use any libraries beyond bo

9条回答
  •  隐瞒了意图╮
    2020-12-04 11:33

    While the encoding works, the decoder is certainly broken. Also there is a bug opened: https://svn.boost.org/trac/boost/ticket/5629. I have not found a fix for that.

提交回复
热议问题