質問

I'm developing an OpenSource .NET Licensing Engine. This engine use hardware id (harddisk serial number) as lock and CRC16 this value to get shorten identifier.

Example value is MAXTOR ST3100, 476300BE and CRC16 result is 3FF0

My concern is how often 2 diffrent value get same CRC16 value, or should I use CRC32 instead ?

他のヒント

As CRC16 is a 16-bit value, I'd say that the chance is around 1 in 65536.

No hashing method generates unique values, collisions being guaranteed at some point. The closest bet based on your requirements is simply to use the harddisk serial number as-is.

Hackers will crack it easily though.

ライセンス: CC-BY-SA帰属
所属していません StackOverflow
scroll top