I have to create a program using hashing but I'm not even sure what it is. Can someone explain this to me and how to use it in C++?
Hashing
Started by
Guest_NeedHelp_*
, Sep 29 2006 02:54 PM
3 replies to this topic
#1
Guest_NeedHelp_*
Posted 29 September 2006 - 02:54 PM
Guest_NeedHelp_*
|
|
|
#2
Posted 01 October 2006 - 12:22 PM
A hash is a value generated from another value. Basicly, it's an n to 1 function that can be used with a reasonably high certainty to detect different inputs. Software keys are passed through a hash function to detect valid keys. Hash tables use the hash of an input to organize values, making input easier. CRC and MD5 are also examples of hashes. To implement it in C++, simply create a function "[return type] hash(string input)" and define the output string via any useful algorithm you come up with.
Note: having a program check its own hash might be a useful way to help protect it from being cracked.
Note: having a program check its own hash might be a useful way to help protect it from being cracked.
#3
Posted 06 October 2006 - 12:07 PM
How do you make a program check its own hash though?
#4
Posted 07 October 2006 - 01:30 PM
Store the hash in a seperate file, possibly encrypted, etc. Or create a hash collision.


Sign In
Create Account

Back to top










