Base64Encoding the password for FM Data API

Is there a preferred (or simpler, built-in?) method to base64-encode the password for Data API usage? When I encoded the password the first time, I just brought up a Data Viewer Window and did the encoding there.

Just wondering...