English 中文(简体)
两种数据集可能产生同样的《儿童权利公约》64价值吗?
原标题:How likely are two blocks of data likely to produce the same CRC64 value?
  • 时间:2011-05-17 01:56:44
  •  标签:
  • crc
  • crc64

I have an caching application that uses a CRC64 value to ensure data integrity. I m thinking about putting an extra field, a timestamp to be passed around with the data between the various cache servers and compared to see if data has changed.

However, this requires protocol changes. While that s not a huge deal, I already have a CRC64 that could be used as an indicator that something has changed.

Does anyone know the stats around two blocks of data producing the same CRC64? If not, how could I compute it or estimate it s likelyhood?

最佳回答
问题回答

两个《儿童权利公约》64 相对于不同的随机数据而言是相同的,其可能性在2**64中几乎是一次。 但是,由于《儿童权利公约》对数据模式有些敏感,可能会出现一些变性的情况,即你失去几个双亲保护命令。 也许不可能出现硬数,但你在假设最坏的碰撞机会时可能不会安全,在2**50或50年时,这种机会将不足1。

如果你使用加密带而不是《儿童权利公约》64,那么你可以放心地接近理论限制,但一般而言,加密洗刷的成本要高得多。





相关问题
CRC for cross platform applications

I wish to use common CRC logic in a VB.NET or C# application as well as on a C/Linux application. I have one C/Linux application that interacts with a webservice (written in C#) and also a web ...

Find out CRC or CHECKSUM of RS232 data

I need to communicate with a RS232 device, I have no specs or information available. I send a 16 byte command and get a 16 byte result back. The last byte looks like some kind of crc or checksum, I ...

Fast file integrity verification

Is there any fast algorithm that allows to compare two files (for verification purpose) without need to read the entire contents?

Data Length vs CRC Length

I ve seen 8-bit, 16-bit, and 32-bit CRCs. At what point do I need to jump to a wider CRC? My gut reaction is that it is based on the data length: 1-100 bytes: 8-bit CRC 101 - 1000 bytes: 16-bit CRC ...

compute crc of file in python

I want to calculate the CRC of file and get output like: E45A12AC. Here s my code: #!/usr/bin/env python import os, sys import zlib def crc(fileName): fd = open(fileName,"rb") content = fd....

热门标签