powerrr
Supremacy Member
- Joined
- Apr 20, 2002
- Messages
- 8,966
- Reaction score
- 1,839
http://forums.hardwarezone.com.sg/o...-hp-number-during-registration-5112109-4.html
Actually if the hp number used is translated into a hash number and stored, it's possible to use brute-force methods to get back the hp number.
All you need is a loop like this:
So although the actual hp number used for registration is not stored in hwz's database, it's still possible to retrieve the number used if needed.
If hwz's database gets leaked, technically the hp numbers used can be reversed engineered.
Here's an example. I stored the number 97664041 as an MD5 string. The resultant MD5 hash is 6301ff4f97d86ee653caddc1de22befc.
You can decrypt that MD5 hash and get back 97664041. There are many online tools for doing that. Here's one:
http://www.md5online.org/
Kiwi8 wrote:
U dunno what's the meaning of a hash function meh? It is used to calculate a hash number from the phone number in a one-way fashion. It is easy to calculate the hash number from the phone number but computationally difficult to calculate the phone number from the hash number. HWZ stores the hash number only.
https://en.wikipedia.org/wiki/Hash_function
Actually if the hp number used is translated into a hash number and stored, it's possible to use brute-force methods to get back the hp number.
All you need is a loop like this:
PHP:
# just pseudo code, not actual php code
# starting from 80000000 because hp numbers start with 8
# end with 99999999 because that's the largest hp number
for (80000000..99999999) {
find_hash_of_each_hp_number;
match_it_against_hash_numbers_stored;
if matched, you get the number back;
}
# code like the above will likely execute in a few minutes because there are only 20 million numbers between 80000000 to 99999999
So although the actual hp number used for registration is not stored in hwz's database, it's still possible to retrieve the number used if needed.
If hwz's database gets leaked, technically the hp numbers used can be reversed engineered.
Here's an example. I stored the number 97664041 as an MD5 string. The resultant MD5 hash is 6301ff4f97d86ee653caddc1de22befc.
You can decrypt that MD5 hash and get back 97664041. There are many online tools for doing that. Here's one:
http://www.md5online.org/
Last edited:

