tag 17360 notabug thanks On 04/28/2014 02:56 AM, Ruediger Meier wrote: > On Monday 28 April 2014, Алексей wrote: >> I take some difference of results base64 command and base64 php >> function >> >> *echo "111111" | base64* >> give result >> *MTExMTExCg==* > > echo prints a newline per default > $ echo -n "111111" | base64 > MTExMTEx > 'echo -n' is not portable; the portable spelling is: printf 111111 | base64 But the analysis is correct - depending on whether you feed the trailing newline as part of the buffer to be encoded, the base64 encoding is correct either way. So I'm closing this as not a bug. -- Eric Blake eblake redhat com +1-919-301-3266 Libvirt virtualization library http://libvirt.org