Hi,

Bhasker C V <[EMAIL PROTECTED]> writes:

>  I am trying to encode using base64 to get data for SMTP
> authentication which i am experimenting upon. I stumbled upon this
> issue. I am not sure why this is happening.
>
>  Say the text to be encoded is  "[EMAIL PROTECTED]"
>
>  $ perl
> use MIME::Base64;
> print encode_base64("[EMAIL PROTECTED]");
> aGVscC5jb20=

Perl understands the "@base" as an array here.  So you only encode
"help.com" in base64.  Use ' instead of " and you get

    aGVscEBiYXNlLmNvbQ==

> $ echo "[EMAIL PROTECTED]" | openssl base64
> aGVscEBiYXNlLmNvbQo=

Now the only difference is the new-line produced by echo.

Regards,
Ansgar

-- 
PGP: 1024D/595FAD19  739E 2D09 0969 BEA9 9797  B055 DDB0 2FF7 595F AD19


-- 
To UNSUBSCRIBE, email to [EMAIL PROTECTED] 
with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]

Reply via email to