ip校验和 tcp校验和
Many of us see the term checksum and checksum outputs frequently but don't really take the time to run them -- oftentimes we simply trust the file we've downloaded is in working order and from the original source. This past weekend when I was attempting to recover my Bitcoin Cash, however, I wasn't willing to chance it -- I wanted to ensure the app/file hadn't been compromised in any way.
我们中的许多人经常看到术语校验和和校验和输出,但并没有真正花费时间来运行它们-通常,我们只是简单地相信我们下载的文件处于工作状态且来自原始来源。 但是,在过去的一个周末,当我试图收回我的比特币现金时,我不愿意碰碰运气-我想确保应用程序/文件没有受到任何损害。
For those who don't know what a checksum is, I think this definition from is helpful:
对于那些不知道校验和是什么的人,我认为定义很有帮助:
A checksum is the outcome of running an algorithm, called a cryptographic hash function, on a piece of data, usually a single file. Comparing the checksum that you generate from your version of the file, with the one provided by the source of the file, helps ensure that your copy of the file is genuine and error free.
校验和是对一段数据(通常是单个文件)运行一种称为加密哈希函数的算法的结果。 将您从文件版本生成的校验和与文件源提供的校验和进行比较,有助于确保文件副本是真实的且没有错误。
Armed with the file I wanted, and the verified checksum provided by the author, I ran a checksum on the file in question:
有了我想要的文件以及作者提供的经过验证的校验和,我对有问题的文件运行了校验和:
shasum 1 logo.png# shasum: 1:# e78c5ca49b926a15b3d4e5107f3b17b2cc6fd54b logo.png
shasum
is Mac's command line command for checking checkums. The first argument represents which sha hash value you want to use (sha-1, sha-256, etc.) . The last argument is the file to check.
shasum
是Mac的用于检查校验和的命令行命令。 第一个参数表示要使用的sha哈希值(sha-1,sha-256等)。 最后一个参数是要检查的文件。
When it comes to financial and critical apps and files, it's probably worth your time to run a quick checksum to ensure what you've downloaded is what you really want!
对于财务和重要的应用程序和文件,可能值得花时间运行快速校验和,以确保下载的是您真正想要的!
翻译自:
ip校验和 tcp校验和