in reply to Re: Search hex string in vary large binary file
in thread Search hex string in vary large binary file
Its a point; but I wonder how many .mv4s you'd have to search before you found "hdvd" & "data" separated by exactly 4 bytes that wasn't part of the required 24 bytes?
To clarify, in totally random data, there are 256**24 (6.2771e+57) permutations of 24 bytes.
A 20GB file has 21474836473 sets of 24-bytes.
So the odds of one of them being a false hit is: 3.4211e-48 (0.00000000000000000000000000000000000000000000034211%). And every restriction on those bytes increases the odds.
Pretty good odds that any hit is a good one.
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^3: Search hex string in vary large binary file
by Anonymous Monk on Feb 07, 2015 at 15:57 UTC | |
by BrowserUk (Patriarch) on Feb 07, 2015 at 16:18 UTC | |
by Anonymous Monk on Feb 07, 2015 at 19:56 UTC | |
by BrowserUk (Patriarch) on Feb 07, 2015 at 20:55 UTC | |
by Anonymous Monk on Feb 07, 2015 at 21:24 UTC | |
|