|
-
Jun 26th, 2008, 12:40 AM
#1
Thread Starter
Lively Member
Hash function
I was testing the Hash function today.
And I read here http://il2.php.net/manual/en/function.hash.php
If I set the parameter $raw_output=true the function will return a binary rows instead of hexits values.
But when I try it it returns a strange characters instead of binary values?
So can you explain for me what they mean by binary rows, and why I don't see binary values?
Thanks
-
Jun 26th, 2008, 01:22 AM
#2
Re: Hash function
i tried it and i see what you mean. i am not really sure what is happening.
this is what i got:
\o��@�Uks�c���
My usual boring signature: Something
-
Jun 26th, 2008, 03:44 AM
#3
Re: Hash function
Raw binary data, not characters. You're trying to view them as characters, hence the confusion.
-
Jun 26th, 2008, 08:11 AM
#4
Thread Starter
Lively Member
Re: Hash function
so How can I see the actual binary values?
-
Jun 26th, 2008, 08:31 AM
#5
Hyperactive Member
Re: Hash function
You mean how do you see the characters that the binary values represent?
» Twitter: @rudi_visser : Website: www.rudiv.se «
If Apple fixes security flaws, they are heralded as proactive. If Microsoft fixes a security flaw, they finally got around to fixing their buggy OS.
-
Jun 26th, 2008, 09:28 AM
#6
Re: Hash function
 Originally Posted by ayman_rapper
so How can I see the actual binary values?
If you wish to see the binary output in a visual form then you don't set the raw_output argument to true. The character form of the hash is usually expressed as hexadecimal digits 0-F rather than binary digits to make it easier to read.
If you want to save space and simply compare hashes, (not read or transfer it as part of a text protocol HTTP/SMTP) then you should set the raw_output argument to true.
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|