Better HN
top
new
best
ask
show
jobs
Log in
Sign up
Better HN
Comment
by
xienze
· 1y ago · 0 comments
People really overthink this. You can safely expose internal IDs by doing a symmetric cipher, like a Feistel cipher. Even sequential IDs will appear random.
Comments
[–]
whiskey-one
1y ago
Looks easy on the surface, but the problem is key rotation.
[–]
morshu9001
1y ago
I didn't know about this problem but was already thinking it sounds even harder. And the resulting IDs are probably quite large.