md5 and sha1 are good for crypographically secure hashes, but is unnecessarily slow for simply collisions avoidance.
it will be easy to allow hashes like xxh3, which can process 15g / second. Since these are often largish files, this saves a tiny bit of time but also is better for the world at large (wasted cpu = more energy).
I can make a PR if you want. Obviously, it's far from urgent, I extracted the ideas for the checksum command in my project, it makes for a great example of how to avoid duplication!
md5 and sha1 are good for crypographically secure hashes, but is unnecessarily slow for simply collisions avoidance.
it will be easy to allow hashes like xxh3, which can process 15g / second. Since these are often largish files, this saves a tiny bit of time but also is better for the world at large (wasted cpu = more energy).
I can make a PR if you want. Obviously, it's far from urgent, I extracted the ideas for the checksum command in my project, it makes for a great example of how to avoid duplication!