Top Nav

Encode/decode SMTP AUTH username/passwords

When using SMTP AUTH, the username and password are base64 encoded. Here’s a snip of perl that will encode a string:

This will produce something like this:

And here’s the decode:

which of course yields: