SHA1 checksums of mods
Posted: Sat Mar 21, 2020 8:04 pm
Not directly related to the game, if this belongs somewhere else please tell me.
I'm writing sofware that downloads mods from the mod portal.
Using the mod portal API to download mods, you are supplied a SHA1 checksum in the JSON response like this:
However this checksum doesn't match the actual checksum of the downloaded mod file (checked multiple implementations and they all produced the same result, which was unequal to the provided hash).
I want to perform proper file integrity checks so I'd be thankful if someone told me how this is being calculated.
Thanks in advance!
I'm writing sofware that downloads mods from the mod portal.
Using the mod portal API to download mods, you are supplied a SHA1 checksum in the JSON response like this:
Code: Select all
{
... ,
"latest_release": {
... ,
"sha1": "bbd86d46a4893c416f3f7775d6abb8698feb42e7"
}
}
I want to perform proper file integrity checks so I'd be thankful if someone told me how this is being calculated.
Thanks in advance!