On Sun, Jul 27, 2014 at 04:16:35PM +0200, Olaf Schreck wrote:

> chakl@gate:~$ perl -MMIME::Base64 -e 'print 
> encode_base64("\000t...@example.org\000testpass")'
> AHRlc3Qub3JnAHRlc3RwYXNz

Basic Perl user error.  The string "@example" is interpreted as an
array expansion.

    $ perl -e 'print "\000t...@example.org\000testpass";' | cat -v
    ^@test.org^@testpass

Try instead

    $ perl -MMIME::Base64 -e 'print 
encode_base64("\000test\@example.org\000testpass")'
    AHRlc3RAZXhhbXBsZS5vcmcAdGVzdHBhc3M=

-- 
        Viktor.

Reply via email to