▲ | cyberax a day ago | ||||||||||||||||
Uhh... What? You just use AES with a fixed key and IV in block mode. You put in 128 bits, you get out 128 bits. The encryption is strong, so the clients won't be able to infer anything from it, and your backend can still get all the advantages of sequential IDs. You also can future-proof yourself by reserving a few bits from the UUID for the version number (using cycle-walking). | |||||||||||||||||
▲ | grapesodaaaaa a day ago | parent [-] | ||||||||||||||||
I still feel like calling something like uuid.v4() is easier and less cognitively complex. | |||||||||||||||||
|