Big thanks to Nick Stephens for donating [this sample code to do the not-so-simple algorithm for base 64 encoding/decoding. The comments in the chart refer to this [URL="http://en.wikipedia.org/wiki/Base64"]Wikipedia page on Base64](http://www.opto22.com/site/downloads/dl_drilldown.aspx?aid=4157).
Even if you're not familiar with the term, I'm guessing you may have seen some base-64 encoded data at some point, perhaps in an email header, it looks like this:
Here's the link to the chart you can import:
Note: this code is perfect for a subroutine, stay tuned more on converting your code into a subroutine.