Help!

md5sum mistery

 
  

Post new topic   General Reply to Topic (not reply to a specific post)    Forums Home -> Slackware RSS
Next:  security.debian.org down?  
Author Message
Itching Armpit
External


Since: Oct 15, 2009
Posts: 2



PostPosted: Thu Oct 15, 2009 7:10 am    Post subject: md5sum mistery
Archived from groups: alt>os>linux>slackware (more info?)

me@here:~# md5sum
burp [RETURN, CTRL+D]
38d153ba17c6222412f4fae9c50ff32b -

Online services give a different md5 for "burp":
http://gdataonline.com/makehash.php

Word Hash
burp afaff8193505e29230b76f8c8dd78170

Why is md5sum in disagreement?
Back to top
Simon Sibbez
External


Since: Oct 15, 2009
Posts: 1



PostPosted: Thu Oct 15, 2009 7:10 am    Post subject: Re: md5sum mistery [Login to view extended thread Info.]
Archived from groups: per prev. post (more info?)

Itching Armpit wrote:

> me@here:~# md5sum
> burp [RETURN, CTRL+D]
> 38d153ba17c6222412f4fae9c50ff32b -
>
> Online services give a different md5 for "burp":
> http://gdataonline.com/makehash.php
>
> Word Hash
> burp afaff8193505e29230b76f8c8dd78170
>
> Why is md5sum in disagreement?

you@there:~$ echo burp | md5sum
38d153ba17c6222412f4fae9c50ff32b -

you@there:~$ echo -n burp | md5sum
afaff8193505e29230b76f8c8dd78170 -

/S.
Back to top
Manuel Reimer
External


Since: Oct 15, 2009
Posts: 1



PostPosted: Thu Oct 15, 2009 7:10 am    Post subject: Re: md5sum mistery [Login to view extended thread Info.]
Archived from groups: per prev. post (more info?)

Itching Armpit wrote:
> me@here:~# md5sum
> burp [RETURN, CTRL+D]
> 38d153ba17c6222412f4fae9c50ff32b -

> Online services give a different md5 for "burp":
> http://gdataonline.com/makehash.php

> Word Hash
> burp afaff8193505e29230b76f8c8dd78170

> Why is md5sum in disagreement?

It isn't:

$ echo -n burp | md5sum
afaff8193505e29230b76f8c8dd78170 *-

As you hit "RETURN" before "CTRL+D", you sent a "\n" (newline) character
after your "burp" and so it was added to the characters to build the
checksum from.

CU

Manuel
Back to top
Itching Armpit
External


Since: Oct 15, 2009
Posts: 2



PostPosted: Thu Oct 15, 2009 7:10 am    Post subject: Re: md5sum mistery [Login to view extended thread Info.]
Archived from groups: per prev. post (more info?)

Itching Armpit, being dumb on 10/15/2009 11:57 AM, wrote:

> me@here:~# md5sum
> burp [RETURN, CTRL+D]
> 38d153ba17c6222412f4fae9c50ff32b -

Gee, thanks Manuel and Simon!
Back to top
Peter Chant
External


Since: Oct 15, 2009
Posts: 2



PostPosted: Thu Oct 15, 2009 5:10 pm    Post subject: Re: md5sum mistery [Login to view extended thread Info.]
Archived from groups: per prev. post (more info?)

Itching Armpit wrote:

> Itching Armpit, being dumb on 10/15/2009 11:57 AM, wrote:
>
>> me@here:~# md5sum
>> burp [RETURN, CTRL+D]
>> 38d153ba17c6222412f4fae9c50ff32b -
>
> Gee, thanks Manuel and Simon!

Explains why I got differing md5sums on the command line and in php then?


--
http://www.petezilla.co.uk
Back to top
Display posts from previous:   
Post new topic   General Reply to Topic (not reply to a specific post)    Forums Home -> Slackware All times are: Eastern Time (US & Canada) (change)
Page 1 of 1

 
You can post new topics in this forum
You can reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum