Encrypt API key for basic auth.
Encrypt API key for basic auth.