Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Support passing in a salt for unique IDs per object type #17

Closed
gligorkot opened this issue Dec 21, 2023 · 1 comment
Closed

Support passing in a salt for unique IDs per object type #17

gligorkot opened this issue Dec 21, 2023 · 1 comment

Comments

@gligorkot
Copy link

It would be useful to be able to pass a salt in the Sqids config in order to generate unique ids for different salt.

Similar to hashIds for PHP feature documented here https://github.com/vinkla/hashids?tab=readme-ov-file#making-your-output-ids-unique

@4kimov
Copy link
Member

4kimov commented Dec 21, 2023

Just shuffle the alphabet. It has the same effect.
https://sqids.org/faq#unique

@4kimov 4kimov closed this as completed Dec 21, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants