I know, this is reinventing the wheel. There are other useful and available libraries to encode to and decode from base64. I like to try and learn, and I am making a new version. Here is xkcd's take on new versions.
Nevertheless, I persist.
I am using this wiki page as a reference and source for a long string I'm using to confirm my methods.