In our project there are several places where we could\'ve gotten away with hashing. For example, we store an encrypted reference between a license and the licensed object in t
You've introduced the secrecy of the key as a weak point, I would say it's a risk, though gauging the severity would take more details.
Hashing, on the other hand, would rely solely on the difficulty of finding collisions, which is probably a more secure scenario than keeping that key secret.