SHA-256 Git repositories are now in public preview

(blog.github.com)

20 points | by abraham a day ago ago

8 comments

  • tmarkovski 8 hours ago ago

    I guess you gotta start somewhere. Git has supported sha256 since 2.29, but not many people used it because you couldn't host it on github and git 3.0 will make it the default for new repos. The python2 comparsion is fair for tooling though: I wrote a git gui client and I had to handle both 20 and 32 byte object ids and check hash version in the commit-graph file.

  • catab 12 hours ago ago

    (Full disclosure: I am the author of rocketgit.)

    Rocketgit (AGPL) supports SHA-256 since December 2022. 26 repositories use it (1.4%). First repo used it on September 2022.

    https://rocketgit.com

  • alwillis 21 hours ago ago

    SHA-256 git repos are probably unnecessary [1].

    [1]: https://blog.gitbutler.com/git-3-sha-256

  • oiwdis a day ago ago

    [dead]

  • evujumenuk a day ago ago

    It's ironic that this announcement arrives in the same week as the widely disseminated NSA recommendation to move to 384 bit or 512 bit sizes for SHA.

    Git 3.0 might be better served by either going that route or specifying a non-cryptographic hash entirely, or declaring SHA-1 an insecure, yet weirdly slow message digest.

  • PaoloBarbolini a day ago ago

    Still no IPv6...

  • Panzerschrek 15 hours ago ago

    > When you create a repository, you can now choose either SHA-1 or SHA-256 as its hash algorithm

    This means that existing repositories can't use it. So, what's the point? Now we have python2/python3 Ipv4/Ipv6 kind of situation.