| « Perl - Sort associative array by value | MySQL Binary Log Rotation » |
When using SMTP AUTH, the username and password are base64 encoded. Here's a snip of perl that will encode a string:
perl -MMIME::Base64 -e 'print encode_base64("username");'
This will produce something like this:
dXNlcm5hbWU=
And here's the decode:
perl -MMIME::Base64 -e 'print encode_base64("dXNlcm5hbWU=");'
which of course yields:
username