Done HASH suggestion for v27

May 20, 2008
11,411
99
Syracuse, NY, USA
I don't think I knew about HASH. But I do think the following has been discussed before. The following statement (from HASH's help) is not true.

Code:
The hash value is a unique value corresponding to the content of a file. If two files have the same hash value and they're using SHA256, SHA384, or SHA512, then they have the same content (regardless of their file names or locations).
 
May 20, 2008
11,411
99
Syracuse, NY, USA
Should be "are very likely to have".
Probably should be left unsaid. Consider only 65-byte files (256^65 = 2^520 of them). There are 256^64 = 2^512 possible values for SHA512. That's an average of 256 files for each possible value of SHA512. ... hardly a good bet that two with the same SHA512 will be the same!
 

Charles Dye

Super Moderator
Staff member
May 20, 2008
4,466
88
Albuquerque, NM
prospero.unm.edu
Probably should be left unsaid. Consider only 65-byte files (256^65 = 2^520 of them). There are 256^64 = 2^512 possible values for SHA512. That's an average of 256 files for each possible value of SHA512. ... hardly a good bet that two with the same SHA512 will be the same!

And 255 times as many possible files with different hashes? Seems like pretty good odds to me.
 
Aug 23, 2010
637
9
It is known that hashes could collide. The thing is that probability of deliberately crafting such a hash is insignificant for a given purpose.
 
Similar threads
Thread starter Title Forum Replies Date
N Done Add display options to new HASH function Suggestions 1
thedave Done @SHA1/@SHA256/etc hash of string Suggestions 0
Charles Dye Done ASSOCIATE suggestion for v27 Suggestions 1
D Suggestion: VIEW option to open VIEW over tab window but not keep it there Suggestions 0
Alpengreis Done Suggestion for full osbuild internal variable Suggestions 2
L Done Suggestion for TCC 'ver' command Suggestions 8
D Done Suggestion: Add VIEW option to open in same position as current window Suggestions 0
D Suggestion: Tab or button to open new tab window in horizontal group Suggestions 1
Charles Dye @VERINFO suggestion Suggestions 0
D Done Suggestion: keystroke to copy previous argument Suggestions 3
H Done DEDUPE suggestion Suggestions 8
C Done Help suggestion TCMD Suggestions 3
C Declined copy /w suggestion Suggestions 2
J Done Everything Search Suggestion Suggestions 8
Fross Done sendmail suggestion Suggestions 1
K_Meinhard Declined Renewed suggestion Suggestions 0
S Declined TAIL suggestion Suggestions 0
A Done Cosmetic suggestion on displaying version number Suggestions 0
M Done TC 11 suggestion Suggestions 0
G Done V11 Suggestion Suggestions 3
J Done Suggestion for V11 Suggestions 8
Charles Dye Done v11 suggestion: plugin online help interface Suggestions 0
D Done Suggestion for commands to move/copy a folder Suggestions 7
J Done Variable Name Completion Suggestion Suggestions 0
Charles Dye Done Startup Tabs / Tab Toolbar suggestion Suggestions 1
Charles Dye TCEDIT suggestions for v27 Suggestions 0

Similar threads