Click here to Skip to main content
16,014,650 members
Home / Discussions / Algorithms
   

Algorithms

 
GeneralRe: When should I choose Windows application or Console application? Pin
Rilhas31-Jan-07 13:05
Rilhas31-Jan-07 13:05 
GeneralRe: When should I choose Windows application or Console application? Pin
Jeremy Falcon31-Jan-07 13:12
professionalJeremy Falcon31-Jan-07 13:12 
GeneralRe: When should I choose Windows application or Console application? Pin
Rilhas31-Jan-07 13:23
Rilhas31-Jan-07 13:23 
GeneralRe: When should I choose Windows application or Console application? Pin
Jeremy Falcon31-Jan-07 13:30
professionalJeremy Falcon31-Jan-07 13:30 
GeneralRe: When should I choose Windows application or Console application? Pin
Rilhas31-Jan-07 13:32
Rilhas31-Jan-07 13:32 
GeneralRe: When should I choose Windows application or Console application? Pin
El Corazon31-Jan-07 16:36
El Corazon31-Jan-07 16:36 
GeneralRe: When should I choose Windows application or Console application? Pin
Rilhas1-Feb-07 12:50
Rilhas1-Feb-07 12:50 
QuestionTrying to identify this algorithm Pin
Waldermort13-Dec-06 2:52
Waldermort13-Dec-06 2:52 
I am trying to reverse engineer the index.dat files used by internet explorers cache manager. As you may know all your history, cookies and offline content are stored in these files. Extracting the data is quite easy, but I am looking to do a little more than that.

Anyway, the files contain a hash table which IE uses for fast lookup. Each table row has a DWORD hash, a WORD index and a WORD flag. The hash is giving me a headache since I have so far been unsuccesful in reversing it. Here are a few samples:
0:    73A7A400        10:   D83D7500        20:   668A2540        30:   82E183C0
1:    A7D808C0        11:   348B4DC0        21:   FFE4CF40        31:   71DEEC00
2:    AD9C5680        12:   CA96CF40        22:   24B68100        32:   114A0B80
3:    F4DA5FC0        13:   7BD6FD40        23:   34A14800        33:   01421C40
4:    4EA85FC0        14:   C94CEF80        24:   D8252AC0        34:   4F5CDA40
5:    6F40B200        15:   7509CD80        25:   92C1A440        35:   DEE1BCC0
6:    526FB400        16:   77128380        26:   4601BF00        36:   8AF84BC0
7:    DA715A40        17:   DB5EAA80        27:   55018DC0        37:   CD960100
8:    04E3AEC0        18:   46D03340        28:   E9998EC0        38:   839C2600
9:    7FB4E800        19:   B6849080        29:   A4203E00        39:   94B5DF40

As you can see it's a 32 bit value. You may also notice the last byte of the hash always contains similar numbers, I'm hoping this will help in determining which algorithm was used. The last byte values are usually x00, x40, x80, xC0, there are some less common values of 0x04, x05 and x08. Could they be flags?

I'm guessing the url entered into the browser is what's being hashed, though without knowing the algorithm used it's uncertain.

Has anybody ever seen output like this, or do you have an idea why the last byte is consistent? Or better yet, do you know the algorithm?
AnswerRe: Trying to identify this algorithm Pin
Paul Conrad13-Dec-06 3:58
professionalPaul Conrad13-Dec-06 3:58 
GeneralRe: Trying to identify this algorithm Pin
Waldermort13-Dec-06 4:52
Waldermort13-Dec-06 4:52 
AnswerRe: Trying to identify this algorithm Pin
Bassam Abdul-Baki13-Dec-06 4:01
professionalBassam Abdul-Baki13-Dec-06 4:01 
GeneralRe: Trying to identify this algorithm Pin
Waldermort13-Dec-06 4:47
Waldermort13-Dec-06 4:47 
GeneralRe: Trying to identify this algorithm Pin
Paul Conrad13-Dec-06 4:56
professionalPaul Conrad13-Dec-06 4:56 
GeneralRe: Trying to identify this algorithm Pin
Waldermort13-Dec-06 6:12
Waldermort13-Dec-06 6:12 
GeneralRe: Trying to identify this algorithm Pin
Paul Conrad13-Dec-06 6:44
professionalPaul Conrad13-Dec-06 6:44 
GeneralRe: Trying to identify this algorithm Pin
S Douglas26-Dec-06 19:25
professionalS Douglas26-Dec-06 19:25 
QuestionCan comparisons be done without If statements in C [modified] Pin
nripun11-Dec-06 2:30
nripun11-Dec-06 2:30 
AnswerRe: Can comparisons be done without If statements in C Pin
Guffa11-Dec-06 3:18
Guffa11-Dec-06 3:18 
GeneralRe: Can comparisons be done without If statements in C Pin
Ed.Poore11-Dec-06 3:52
Ed.Poore11-Dec-06 3:52 
GeneralRe: Can comparisons be done without If statements in C Pin
Guffa11-Dec-06 4:06
Guffa11-Dec-06 4:06 
AnswerRe: Can comparisons be done without If statements in C Pin
Luc Pattyn11-Dec-06 3:19
sitebuilderLuc Pattyn11-Dec-06 3:19 
GeneralRe: Can comparisons be done without If statements in C Pin
Stephen Hewitt11-Dec-06 15:54
Stephen Hewitt11-Dec-06 15:54 
GeneralRe: Can comparisons be done without If statements in C Pin
Luc Pattyn12-Dec-06 4:27
sitebuilderLuc Pattyn12-Dec-06 4:27 
AnswerRe: Can comparisons be done without If statements in C Pin
Guffa11-Dec-06 4:18
Guffa11-Dec-06 4:18 
AnswerRe: Can comparisons be done without If statements in C Pin
Maximilien11-Dec-06 4:49
Maximilien11-Dec-06 4:49 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.