View Single Post
  #2  
Old 03-13-2019, 04:34
TempoMat TempoMat is offline
Friend
 
Join Date: Jan 2006
Posts: 89
Rept. Given: 10
Rept. Rcvd 6 Times in 6 Posts
Thanks Given: 4
Thanks Rcvd at 28 Times in 21 Posts
TempoMat Reputation: 6
Update

Well I managed to do it.
It was in the end easier than I thought, due to the fact that only numeric string were hashed.
The solution was:
Code:
For i=11000000 to 99999999
    res=SHA1(i)
    for j=1 to lenHashTable
        if res=HashTable(j)
           Write2File (i=HashTable(i)
        end if
    next j
    Append2HashedFile (res)
next i
It took approximately 2:30 hours to finish on an old Core i3 330M Laptop.
Every 500000 SHA1 hashes generated was saved to a file was which had a size of approx. 27,34 MB.

PS:
The start value was chosen to be 11000000 because the range from 10000000 to 10999999
was used in the testing of the program which yielded no collision with the hardcoded hashes.
Reply With Quote
The Following User Says Thank You to TempoMat For This Useful Post:
tonyweb (03-17-2019)