title: How do I encode a string to base64 using only boost?
body: <p>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 boost.</p>
  
  <p>Simple signature would look like:
  <strong>string Base64Encode(const string&amp; text);</strong></p>
  
  <p>Again I realize the algorithm is easy and there are many libraries/examples doing this but I'm looking for a clean boost example.  I found boost serialization but no clear examples there or from Google.
  <a href="http://www.boost.org/doc/libs/1_46_1/libs/serialization/doc/dataflow.html" rel="noreferrer">http://www.boost.org/doc/libs/1_46_1/libs/serialization/doc/dataflow.html</a></p>
  
  <p>Is this possible without adding the actual base64 algorithm explicitly to my code?</p>