Hashlookup.circl.lu API – hash lookup of known files
gist.github.com
gist.github.com
Of course, if you're generating new files that you know about or checking existing known good files, one would include the SHA256 and SHA512 with it.
Maybe there are other things you could do instead though? I'm not sure.
Accept: text/html, application/xhtml+xml, application/xml;q=0.9, image/webp, */*;q=0.8
No reason why that couldn't read like this instead: Accept: application/vnd.hash+sha256, application/vnd.hash+sha1;q=0.9, application/vnd.hash+md5;q=0.8
That would indicate to the server that you'd like to receive (preferably) SHA256, with a fallback to SHA1, and another fallback to MD5, if none of the other two is available. If the server isn't able to provide any of those, it returns a "406 Not Acceptable" response.
HTTP covers all of this out of the box, people just tend to overlook the more advanced stuff.Using SHA256 or greater is what should be used for generating new hashes, especially if you can update old entries and files with SHA256's. Many databases still have way more MD5/SHA1 hashes which won't be updated to include the SHA256, which is why you'll see them be used often.
The response formats are not described so not very useful.