Show HN: Vanity Git commit hash generator (git.anna.lgbt)

19 points by lojewalo ↗ HN
Hi HN!

This is just a fun little tool I made after I got nerdsniped by noticing that one of my commits naturally started with "fae". I thought that was cute, so I looked up existing tools that make vanity commit hashes, but none of them seemed great to me (and none supporting signing commits).

I learned a fair deal about how git actually stores commits while making this, and I think I came up with a novel way to generate a vanity hash: adding an extra header to the commit file.

This was just a quick project to satisfy my curiosity, but I thought you all might find it neat. Notice that all the commits in that repo start with "fae0"!

- Anna

3 comments

[ 9.2 ms ] story [ 19.2 ms ] thread
Cool idea. Now we just need to get Git to switch to base 64 instead of base 16 hashes so that we have more letters than abcdef105. C0ffee is cool to be able to write though.

However, actually having the commits start out with the same letters is problematic and confusing when e.g. specifying commit hashes on the command-line

Now that git uses sha256, I wonder if it's possible to repurpose old bitcoin mining hardware to find these special hashes.