I have the need for storing key-value pairs, where the key is supposed to be unique. It will be both kept in-memory as well as in binary format on disk. The key is also part of a custom message protocol sent over TCP.
Was first thinking of not supporting what-ever size you want of the key but instead limiting it to X-chars.
Is there an applicable hashing algorithm (no need for security) that would be applicable for use instead, to reduce the length etc of the key, but still being good enough for uniqueness?