title: base64 encode string from a terminal?
body: <p>OS X 10.8.3
  C++</p>
  
  <p>We have base64 encode and decode functions in our code.</p>
  
  <p>However, I want to base64 encode a string from my terminal and use it in my code so our functions can decode it when it needs to be used.</p>
  
  <p>How does one base64 encode a string from a terminal?</p>