Project 3 hash question

59 views
Skip to first unread message

kai...@gmail.com

unread,
Mar 12, 2018, 2:22:33 AM3/12/18
to CSE-539-spring08
When running ./hash and providing a password, is it supposed to output 8 digits or can it be less? Some values I am trying to hash are giving me only 6 characters instead of 8. 
Message has been deleted
Message has been deleted

Partha Dasgupta

unread,
Mar 12, 2018, 1:46:32 PM3/12/18
to CSE-539-spring08
Check the source code.

The hash is a 32 bit number. When printed in hex you get characters, but the characters are just a representation of the 32 bit number. How many digits should the HEX representation of a 32 bit number have?



Partha Dasgupta,
ASU/CIDSE/Computer Science & Eng. 
EMail: par...@asu.edu
http://cactus.eas.asu.edu/partha

On Sun, Mar 11, 2018 at 11:22 PM, <kai...@gmail.com> wrote:
When running ./hash and providing a password, is it supposed to output 8 digits or can it be less? Some values I am trying to hash are giving me only 6 characters instead of 8. 

--
You received this message because you are subscribed to the Google Groups "CSE-539-spring08" group.
To unsubscribe from this group and stop receiving emails from it, send an email to cse-539-spring08+unsubscribe@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Message has been deleted
Message has been deleted
Message has been deleted

Partha Dasgupta

unread,
Mar 13, 2018, 1:33:16 PM3/13/18
to CSE-539-spring08
Yes, it outputs a fixed 32 bit result. Not variable. Human readable result is different.

Suppose the output of the hash function is 32 bits of zeros. All zeros. That is a fixed 32 bit result.
However what would be the output if printed with %d (decimal, or %x (hex)?


Partha Dasgupta,
ASU/CIDSE/Computer Science & Eng. 
EMail: par...@asu.edu
http://cactus.eas.asu.edu/partha

On Sun, Mar 11, 2018 at 11:27 PM, <kai...@gmail.com> wrote:
I thought that hash functions output fixed length values. If they are variable I don't see how to make the rainbow table work? 


On Sunday, 11 March 2018 23:22:33 UTC-7, kai...@gmail.com wrote:
When running ./hash and providing a password, is it supposed to output 8 digits or can it be less? Some values I am trying to hash are giving me only 6 characters instead of 8. 

--
Reply all
Reply to author
Forward
0 new messages