Throughout the eternal marathon of jailbreaking and counting down the days to get the new software released by the devs, one question rises into many people’s mind. Is the software safe, and how can I compare the file against the source. SHA1 enables you to check the file integrity against the source, so that you are able to make sure the file has not been modified. Apple and the iPhone Dev Team uses the SHA1 hash to prove the integrity of their downloads. SHA1 (Secure Hash Algorithm) is a cryptographic hash function created by the well respected Geeks at NSA (National Security Agency). SHA1 is the most widely used hash algorithm today, development of the SHA3 hash is ongoing and expected to be completed by 2012.
How Do I Use SHA1 On My Mac?
SHA1 is simple to access and use on your Mac. First, launch the Terminal application (Applications>Utilities>Terminal). Then, from the template below, use this for your situation:
The SHA1 checksum should equal = 2eb722f340d4e57aa79bb5422b94d556888cbf38
/usr/bin/openssl sha1 [full path to file]
Example: /usr/bin/openssl sha1 /Users/test/Documents/1024SecUpd2003-03-03.dmg
Example Output: SHA1(/Users/test/Documents/1024SecUpd2003-03-03.dmg) =2eb722f340d4e57aa79bb5422b94d556888cbf38
Awesome! In this example, our SHA1 checksums match; therefore, our integrity has not been tampered.
What do you think about SHA1, let us know leave a comment!