News for hackers. Stuff that matters.
Re:Sqids – Generate Short Unique IDs from Numbers by paulddraper on Saturday November 25, 2023 @05:34PM (#38417370)
No, squids are predictable, you can't use them to hide information.

They call it out on their front page.

Re:Sqids – Generate Short Unique IDs from Numbers by richbell on Saturday November 25, 2023 @10:21PM (#38418885)
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.
Re:Sqids – Generate Short Unique IDs from Numbers by slig on Sunday November 26, 2023 @07:30AM (#38421123)
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.
Re:Sqids – Generate Short Unique IDs from Numbers by paulddraper on Sunday November 26, 2023 @02:45PM (#38424342)
They're weakly unpredictable.

Obfuscated