Hacker News
new
|
past
|
comments
|
ask
|
show
|
jobs
|
submit
login
paulddraper
on Nov 25, 2023
|
parent
|
context
|
favorite
| on:
Sqids – Generate short unique IDs from numbers
No, squids are predictable, you can't use them to hide information.
They call it out on their front page.
richbell
on Nov 26, 2023
[–]
I haven't looked at the implementation yet but HashIds (the former project name) required a salt. It would be weird if they changed that.
slig
on Nov 26, 2023
|
parent
|
next
[–]
The `salt` in hashids just shuffled the alphabet. Now they removed the `salt`, but you can have the same level of "obfuscation" as before if you shuffle the alphabet yourself before calling the library.
paulddraper
on Nov 26, 2023
|
parent
|
prev
[–]
They're weakly unpredictable.
Obfuscated
Guidelines
|
FAQ
|
Lists
|
API
|
Security
|
Legal
|
Apply to YC
|
Contact
Search:
They call it out on their front page.