Skip to content

Commit 11a5199

Browse files
authored
Add note that SHA-1 actually has been broken
1 parent e7c3b8e commit 11a5199

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

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

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -84,6 +84,8 @@ Here's an example to give you an idea of what it would take to get a SHA-1 colli
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.
8585
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.
8686
87+
That being said, with hundreds and thousands of dollars' worth of computing power dedicated to the task, https://shattered.io/[two files with the same SHA-1 hash were produced in 2017]. Git has code https://github.com/git/git/blob/master/sha1dc/sha1.c[specifically to protect against this scenario].
88+
8789
====
8890

8991
[[_branch_references]]

0 commit comments

Comments
 (0)