implement BASE64 and cipher libraries