Added base64 encoding+decoding for OSX using Security.framework