문제

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