Use correct masks.
Add a base64 codec and tests.
Merge pull request #5 from mdakin/master

Add base 64 codec + minor mask fix