Trimming a 64 bit unique number to smaller length

时间:2015-09-09 09:08:11

标签: encryption

I have a 64 bit unique number. Is there a possibility to trim this number or use a crypto function to obtain a 48 bit unique number?

Thanks a lot in advance

I think I was not clear enough. I don't want to compress or recover original input. I just have a flash memory that already have a 64 bit unique ID programmed from factory, and some RF ZigBee stack needs a 48 bit number as unique node ID.

It's possible from 64 input to obtain 48 that is guaranteed to be unique?

If I compute CRC32 over something (like a string, block of data) I will obtain a 32 bit value that I'm not 100% sure, but supposed to be unique.

Likewise, can I compute a 48 bit CRC (but don't know how) or use some other checksum/hash to obtain exact 48 bit as output.

Thanks very much,

0 个答案:

没有答案