Ask HN: Cryptography technique to hide monotonically increasing GUIDs
Consider a scenario where a service uses a GUID as an element index and there is a hard requirement for it to be monotonically increasing, but there is also a requirement that this order should not be leaked to clients. Is there any specific cryptographical technique that was designed to hide from clients the relative order of each pair of these GUIDs and still allow services to recover that order?
3 comments
[ 3.7 ms ] story [ 14.9 ms ] threadFor 128-bit GUID use AES-128 is perfect. You can still compare if the two GUIDs are the same without decrypting, but you need to decrypt to get the real GUID.