Search code examples
cryptographyrfid

96-bit output hash function


I am trying to encrypt the contents of an EPC Gen 2 RFID tag, but most of the common hashing functions take up significantly more space than I have available (96 bits in data bank). Is there an existing library or a good way to map to this space?


Solution

  • You can pick any hash algorithm with an output of greater than 96 bits, and use just 96 bits of the result. Just be sure you're consistent and, say, always take the least signficiant 96 bits.