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!