Skip to content

Commit f0fd6f1

Browse files
authored
Merge pull request #1545 from stuartpb/patch-1
2 parents e7c3b8e + 1b95a95 commit f0fd6f1

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

book/07-git-tools/sections/revision-selection.asc

+3-1
Original file line numberDiff line numberDiff line change
@@ -82,8 +82,10 @@ That's 1,200 times the number of grains of sand on the earth.
8282
8383
Here's an example to give you an idea of what it would take to get a SHA-1 collision.
8484
If all 6.5 billion humans on Earth were programming, and every second, each one was producing code that was the equivalent of the entire Linux kernel history (6.5 million Git objects) and pushing it into one enormous Git repository, it would take roughly 2 years until that repository contained enough objects to have a 50% probability of a single SHA-1 object collision.
85-
Thus, a SHA-1 collision is less likely than every member of your programming team being attacked and killed by wolves in unrelated incidents on the same night.
85+
Thus, an organic SHA-1 collision is less likely than every member of your programming team being attacked and killed by wolves in unrelated incidents on the same night.
8686
87+
If you dedicate several thousands of dollars' worth of computing power to it, it is possible to synthesize two files with the same hash, as proven on https://shattered.io/[] in February 2017.
88+
Git is moving towards using SHA256 as the default hashing algorithm, which is much more resilient to collision attacks, and has code in place to help mitigate this attack (although it cannot completely eliminate it).
8789
====
8890

8991
[[_branch_references]]

0 commit comments

Comments
 (0)