8 ms·
One path is to use sequential ints internally and encrypt them externally with something like idgen: https://pypi.org/project/idgen/ https://pypi.org/project/i
by asher 7y ago
One path is to use sequential ints internally and encrypt them externally with something like idgen:
https://pypi.org/project/idgen/ https://pypi.org/project/idgen/
That provides IDs that are both opaque and, if you want, user-friendly.
(disclaimer: I wrote it.)