I was encoding (from terminal) into base64. But I guess the commands are not executing properly.
$ echo 123456789 | base64
MTIzNDU2Nzg5Cg==
And then when I did the same on base64encode, I got this result
MTIzNDU2Nzg5
I thought that maybe echo is being encoded as well so i ran
$ echo | base64
Cg==
I guess i was right, but that didn't help either as in another instance:
$ echo qwertyuiop | base64
cXdlcnR5dWlvcAo=
and when the same was encoded using base64encode the result was
cXdlcnR5dWlvcA==
And not suprisingly i the results from base64encode were accepted(in SMTP)
So, what am i missing here? and how can i sucessfully convert the string or number into base64?