/ 写在前面 – 我热爱技术、热爱开源。我也相信开源能使技术变得更好、共享能使知识传播得更远。但是开源并不意味着某些商业机构/个人可以为了自身的利益而一味地索取,甚至直接剽窃大家曾为之辛勤付出的知识成果,所以本文未经允许,不得转载,谢谢/


Commonly-used file verification algorithms or checksums are:

  • MD5
  • SHA-256 and SHA-512: which are novel hash functions computed with eight 32-bit and 64-bit words, respectively.

macOS

Get an MD5 checksum:

  1. md5 [-pqrtx] [-s string] [file ...]

Get an SHA-256 checksum:

  1. shasum -a 256 [file]

Linux

Get an MD5 checksum:

  1. md5sum [file]

Windows

Install 7-Zip and then we can use the context menu to compute one file’s SHA-256 hash value etc.