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

Port and add Cuid2 (secure uuid generator) in V standard lib #21467

Open
2 tasks
b-bruno opened this issue May 8, 2024 · 0 comments
Open
2 tasks

Port and add Cuid2 (secure uuid generator) in V standard lib #21467

b-bruno opened this issue May 8, 2024 · 0 comments
Labels
Feature Request This issue is made to request a feature.

Comments

@b-bruno
Copy link

b-bruno commented May 8, 2024

Describe the feature

Hello,

V use uuid_v4 to generate uuid, but using V4 UUIDs is also not safe, because there are known possibile attacks on several id generating algorithms that a sophisticated attacker can use to predict next ids.

If you can port Cuid2 (Secure, collision-resistant ids optimized for horizontal scaling and performance. Next generation UUIDs) in V and add inside standard library, it's will be nice.

JS original sources and Go port :
JS : https://github.com/paralleldrive/cuid2
Go: https://github.com/nrednav/cuid2

Use Case

I would like to avoid any problems performances (uuid database) and collision using uuid and use another secure uuid generator.

Proposed Solution

Port Cuid2 in V
JS original sources and Go port :
JS : https://github.com/paralleldrive/cuid2
Go: https://github.com/nrednav/cuid2

Other Information

No response

Acknowledgements

  • I may be able to implement this feature request
  • This feature might incur a breaking change

Version used

0.4.5

Environment details (OS name and version, etc.)

Linux , Windows, Mac Os

Note

You can use the 👍 reaction to increase the issue's priority for developers.

Please note that only the 👍 reaction to the issue itself counts as a vote.
Other reactions and those to comments will not be taken into account.

@b-bruno b-bruno added the Feature Request This issue is made to request a feature. label May 8, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Feature Request This issue is made to request a feature.
Projects
None yet
Development

No branches or pull requests

1 participant