What is the difference between hashing or encryption a data
-
A "fully optimized" hash is 2-way; but at that point, it has lost any performance benefits. (i.e. it's an "index"). A "non-optimized" hash (the basic purpose) can hash mulitple inputs to the same "address"; making it useless for encryption and not particularly useful for passwords depending on the size of the address space. You want to play with hashing algorithms for "password security"? Not on my watch.
"(I) am amazed to see myself here rather than there ... now rather than then". ― Blaise Pascal
Gerry Schmitz wrote:
You want to play with hashing algorithms for "password security"? Not on my watch.
The hashing algorithms used for passwords are considerably more secure than any encryption: SHA-512 for example generates a 512 bit hash value from the (hopefully salted) user password input. This is compared with the stored hash - so the "clear text" password is never transfered out of the authenticating system - and a match confirms the input. This gives you in theory a 1 : 1.34078079e154 chance of a collision or "false positive" assuming that the hashing algorithm gives no weight to any particular range of output values. You cannot regenerate the original input from the hashed value. Encrypted password on the other hand are seriously insecure: the decryption key has to be available to the "check the password" code and that means that it's effectively stored with the encrypted data. Please, do tell us which security systems you have implemented encryption for, so we can avoid them or ensure that we only ever use a "one-time" password (which I do anyway, no two of my logins have the same password, and I use an encrypted password store to hold them - the password to that is only ever stored in my head...)
Bad command or file name. Bad, bad command! Sit! Stay! Staaaay...
-
Gerry Schmitz wrote:
even though it makes little sense
When it comes to storing passwords to authenticate users, using anything other than a hash makes little sense. :)
Gerry Schmitz wrote:
Even heard of HIDAM or HDAM databases?
Nope, and neither has Wikipedia. Google has a bunch of links to IBM documentation, but it all looks pretty dense.
"These people looked deep within my soul and assigned me a number based on the order in which I joined." - Homer
:thumbsup:
Bad command or file name. Bad, bad command! Sit! Stay! Staaaay...
-
What hashing does for which its value can not be reverse ?
tbhattacharjee
Most of them. Try this simple one: add each byte of the input stream together, storing the result in a byte:
byte hash = 0;
foreach (byte b in bytes)
{
hash += b;
}If you feed this any two bytes, can you tell from the result exactly what two bytes you started with? If you think you can, here are some examples: 123, 42, 0, 122 What two bytes values did I start with in each case? You get one guess. There will be a significant prize if you - and you alone - get it on the first attempt.
Bad command or file name. Bad, bad command! Sit! Stay! Staaaay...
-
Gerry Schmitz wrote:
You want to play with hashing algorithms for "password security"? Not on my watch.
The hashing algorithms used for passwords are considerably more secure than any encryption: SHA-512 for example generates a 512 bit hash value from the (hopefully salted) user password input. This is compared with the stored hash - so the "clear text" password is never transfered out of the authenticating system - and a match confirms the input. This gives you in theory a 1 : 1.34078079e154 chance of a collision or "false positive" assuming that the hashing algorithm gives no weight to any particular range of output values. You cannot regenerate the original input from the hashed value. Encrypted password on the other hand are seriously insecure: the decryption key has to be available to the "check the password" code and that means that it's effectively stored with the encrypted data. Please, do tell us which security systems you have implemented encryption for, so we can avoid them or ensure that we only ever use a "one-time" password (which I do anyway, no two of my logins have the same password, and I use an encrypted password store to hold them - the password to that is only ever stored in my head...)
Bad command or file name. Bad, bad command! Sit! Stay! Staaaay...
-
Gerry Schmitz wrote:
A "fully optimized" hash is 2-way;
I'm starting to suspect you're using a different meaning of that word. :doh:
In cryptographic applications, hash functions are typically expected to be practically non-invertible, meaning that it is not realistic to reconstruct the input datum x from its hash value h(x) alone without spending great amounts of computing time (see also One-way function).
Cryptographic hash function - Wikipedia[^]:
it is infeasible to generate a message from its hash value except by trying all possible messages
You want to use anything other than a cryptographic hash function for password storage? Not on my watch. ;P
"These people looked deep within my soul and assigned me a number based on the order in which I joined." - Homer
-
I use Windows Authentication. I don't presume to know more. I said there would be colissions; you want to quibble about the number.
"(I) am amazed to see myself here rather than there ... now rather than then". ― Blaise Pascal
And how do you think Windows stores your password? :rolleyes:
Passwords Technical Overview[^]:
For use in Windows networking, including Active Directory domains, the password is stored two different ways by default: as the LAN Manager one-way function (LM OWF) and as the NT OWF. "One-way function" is a term that denotes a one-way mathematical transformation of data. ... The most common type of one-way function in use is a cryptographic hash.
Although interestingly, Microsoft have added to the confusion by referring to "encryption" in the same sentence.
"These people looked deep within my soul and assigned me a number based on the order in which I joined." - Homer
-
You're confirming what I've been saying.
"(I) am amazed to see myself here rather than there ... now rather than then". ― Blaise Pascal
The only thing I'm confirming is that some people don't understand the difference between encrypting and hashing. :laugh: security - Fundamental difference between Hashing and Encryption algorithms - Stack Overflow[^]
"These people looked deep within my soul and assigned me a number based on the order in which I joined." - Homer
-
And how do you think Windows stores your password? :rolleyes:
Passwords Technical Overview[^]:
For use in Windows networking, including Active Directory domains, the password is stored two different ways by default: as the LAN Manager one-way function (LM OWF) and as the NT OWF. "One-way function" is a term that denotes a one-way mathematical transformation of data. ... The most common type of one-way function in use is a cryptographic hash.
Although interestingly, Microsoft have added to the confusion by referring to "encryption" in the same sentence.
"These people looked deep within my soul and assigned me a number based on the order in which I joined." - Homer
-
The only thing I'm confirming is that some people don't understand the difference between encrypting and hashing. :laugh: security - Fundamental difference between Hashing and Encryption algorithms - Stack Overflow[^]
"These people looked deep within my soul and assigned me a number based on the order in which I joined." - Homer
-
As usual, you come here having done no research for yourself. Use Google or Bing. This information is all available for you.
This space for rent
Not his first time. :laugh:
The shit I complain about It's like there ain't a cloud in the sky and it's raining out - Eminem ~! Firewall !~
-
You're confirming what I've been saying.
"(I) am amazed to see myself here rather than there ... now rather than then". ― Blaise Pascal
I'm with Richard. It does not appear that you are using the same understanding that others have.
There are two kinds of people in the world: those who can extrapolate from incomplete data. There are only 10 types of people in the world, those who understand binary and those who don't.
-
I'm with Richard. It does not appear that you are using the same understanding that others have.
There are two kinds of people in the world: those who can extrapolate from incomplete data. There are only 10 types of people in the world, those who understand binary and those who don't.
You (speaking rhetorically) fixate on one technique / application and categorize a whole branch. Hashing as a technique "in" an "encryption situation"; it is only a footnote in applied cryptology ... usually with a sidebar to the effect of " ... but one only had to alter the last bit to etc. ...". If you really want to educate yourself on hashing, learn about the various ways to defeat hashing. I just thought the original question made about as much sense as asking what is the difference between a BMW and "an automobile" (which is confirmed by the length of the thread).
"(I) am amazed to see myself here rather than there ... now rather than then". ― Blaise Pascal
-
Not his first time. :laugh:
The shit I complain about It's like there ain't a cloud in the sky and it's raining out - Eminem ~! Firewall !~
Indeed. I've lost count of the number of posts like this from him.
This space for rent
-
You (speaking rhetorically) fixate on one technique / application and categorize a whole branch. Hashing as a technique "in" an "encryption situation"; it is only a footnote in applied cryptology ... usually with a sidebar to the effect of " ... but one only had to alter the last bit to etc. ...". If you really want to educate yourself on hashing, learn about the various ways to defeat hashing. I just thought the original question made about as much sense as asking what is the difference between a BMW and "an automobile" (which is confirmed by the length of the thread).
"(I) am amazed to see myself here rather than there ... now rather than then". ― Blaise Pascal
In general terms, yes, "hashing" has a wider meaning than "a cryptographic hash function". In the context of the original question, I think it's reasonable to assume that the OP was referring to "a cryptographic hash function", and not any of the other possible meanings. But given the OP's history as a help vampire, and the fact that he could have answered his own question by spending five minutes in Google, I also think it's reasonable to ignore the question, or direct him to Google. :)
"These people looked deep within my soul and assigned me a number based on the order in which I joined." - Homer
-
In general terms, yes, "hashing" has a wider meaning than "a cryptographic hash function". In the context of the original question, I think it's reasonable to assume that the OP was referring to "a cryptographic hash function", and not any of the other possible meanings. But given the OP's history as a help vampire, and the fact that he could have answered his own question by spending five minutes in Google, I also think it's reasonable to ignore the question, or direct him to Google. :)
"These people looked deep within my soul and assigned me a number based on the order in which I joined." - Homer
My point is always to get the "OP" to clarify their OWN question. The fact that everyone needs to jump in an "reinterpret" my intentions is their problem. The fact that I am not always "obvious" about it, is also not my problem.
"(I) am amazed to see myself here rather than there ... now rather than then". ― Blaise Pascal
-
- please some one tell me difference between hashing or encryption a data. 2) i saw hashing also encrypt data which is not human readable and encryption does the same then why people think hashing is different from encryption ? 3) what hashing does ? 4) if we encrypt data then we can decrypt it too but if we hashing the data then can we reverse the process ? 5) if no then what algorithm hashing use that no one can reverse the data ? 6) give me two sample code to has data one will hash data without salt key and another one hash data with salt key. thanks
tbhattacharjee