News for hackers. Stuff that matters.
Re:Ask HN: Cryptography technique to hide monotonically incr... by nabla9 on Tuesday April 09, 2024 @02:15AM (#39976595)
just encrypt it with symmetric cipher in ECB mode of operation.

For 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.

Re:Ask HN: Cryptography technique to hide monotonically incr... by zgs on Tuesday April 09, 2024 @03:08AM (#39976858)
This is the easiest way to go but it's only obscuring the GUID. Format preserving encryption (FPE) would be another possibility if it's not simply a byte string.