[BusyBox] md5sum strangeness

Larry Doolittle ldoolitt at recycle.lbl.gov
Wed Mar 16 16:34:26 UTC 2005


> I'm currently seeing some odd behaviour from the md5sum function in
> busybox when running on the cris architecture (cris-axis-linux-gnu).
> 
> basically, if I run "echo -n pass | md5sum" on my x86 machine, not using
> busybox, I get this:
> 1a1dc91c907325c69271ddf0c944bc72  -
> When I run the same command using busybox, I get this:
> 2fb40ef8b9a248c0836092862f1e944f  -
> 
> Now, to test a little further, I tried running "echo pass | md5sum" on
> both, and got these results:
> x86:
> 4528e6a7bb9341c36c425faf40ef32c3  -
> cris with busybox:
> 4528e6a7bb9341c36c425faf40ef32c3  -
> 
> So it looks like without the -n at the end of the echo command the
> results are identical, but with it, they're different.

You could have figured this out by simply trying "echo -n pass"
on cris with busybox.  Betcha nickel it says
-n pass

On my debian x86_64 workstation,

$ echo "-n pass" | md5sum
2fb40ef8b9a248c0836092862f1e944f  -

      - Larry
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 189 bytes
Desc: Digital signature
Url : http://lists.busybox.net/pipermail/busybox/attachments/20050316/7bb7169f/attachment-0002.pgp 


More information about the busybox mailing list