什么是CRC?它对错误检测有何帮助?
什么是CRC?它对错误检测有何帮助?
What is CRC? And how does it help in error detection?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
什么是CRC?它对错误检测有何帮助?
What is CRC? And how does it help in error detection?
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
接受
或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
发布评论
评论(3)
CRC 是一种非安全哈希函数,旨在检测原始计算机数据的意外更改,通常用于数字网络和硬盘驱动器等存储设备。
支持 CRC 的设备为每个数据块计算一个短的、固定长度的二进制序列(称为 CRC 代码),并将它们一起发送或存储。当读取或接收到一个块时,设备会重复计算;如果新的 CRC 代码与之前计算的不匹配,则该块包含数据错误,并且设备可以采取纠正措施,例如请求再次发送该块。
资料来源:维基百科
CRC is a non-secure hash function designed to detect accidental changes to raw computer data, and is commonly used in digital networks and storage devices such as hard disk drives.
A CRC-enabled device calculates a short, fixed-length binary sequence, known as the CRC code, for each block of data and sends or stores them both together. When a block is read or received the device repeats the calculation; if the new CRC code does not match the one calculated earlier, then the block contains a data error and the device may take corrective action such as requesting the block be sent again.
Source: Wikipedia
CRC 代表循环冗余校验。
它有助于错误检测..
它由以下部分组成
CRC stands for Cyclic Redundancy Check.
it helps in error detection..
It consists of the following
循环冗余检查是一种哈希函数,允许您在给定某些输入的情况下计算唯一值,并且保证对于相同的输入始终相同。如果输入与原始输入发生某种变化,则会生成不同的 CRC 校验和。因此,如果您有输入和校验和,您可以根据输入计算新的校验和并比较两个校验和。如果它们相同,则意味着输入没有改变。
Cyclic Redundancy Check is a hash function that allows you to compute an unique value given some input which is guaranteed to be always the same for the same input. If the input changes somehow from the original, a different CRC checksum will be generated. So if you have an input and a checksum you could calculate a new checksum from the input and compare both checksums. If they are the same it means that the input hasn't changed.