Replies: 2 comments
-
If the IDs you generated are using the same parameters, they can't collide, they are unique. The FAQ is regarding a random generated ID, like brute-force, etc. The algorithm is not cryptographically secure. |
Beta Was this translation helpful? Give feedback.
0 replies
-
The odds don't really matter, because you should always check incoming IDs by re-encoding decoded numbers to see if original ID matches. That's how you would know if it's valid or not. https://sqids.org/faq#valid-ids |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
From the FAQ
decoding random IDs can sometimes produce the same numbers
. What are the odds, because we are planning to usesqids
to stringify our long ids in json output. If two ids decodes to the same long then it could be a problem.Beta Was this translation helpful? Give feedback.
All reactions