I've been messing around with smtp auth plain authentication. I've been using the following command to generate the auth plain base64 hash.
perl -MMIME::Base64 -e 'print encode_base64("\000username\@domain.com\000password")'
And that hash has been working great. However, I wanted to use something a little easier to remember. So I tried the following.
echo -n "\000username\@domain.com\000password" | base64
but the resulting hash is different. I can't seem to figure it out. What do the '\000' represent?