base64 decoding

Is there a recommended approach to doing base64 decoding from ACUCOBOL? I do have a few ideas in mind, including calling functions from either OpenSSL or MSXML. But the boss is asking for a second opinion.

Our preference would be for a shared library routine as opposed to a standalone utility. Our platforms include both Linux and Windows.

Thanks!