auth-plain () { printf $1\0\0$2 | base64 | tr -d '\n' | sed 's/^/AUTH PLAIN /' }