by falsestprophet · 17y ago · 0 comments
How easy would these be to guess?
There is a 1:3e38 chance of two randomly generated UUIDs colliding.
What is the best algorithm to create them?
http://en.wikipedia.org/wiki/Universally_Unique_Identifier#I...
Should I just make them all private and use authenticated access controls?
If your users don't want other people peaking at their files (DropBox): yes absolutely. If your users don't care (HotorNot), then no.
for smarter than brute-force random UUID algs, the odds of collision are lower.
Whilst it seems fair to assume two UUID will almost certainly not collide, the way you pose that last question sums up my query:
If your users don't want other people peaking at their files (DropBox): yes absolutely
The answer is yes. Ultimately, users should not be able to see each others files, and from what you and other commenters are saying, UUID's on published files are still not robust enough to achieve this.
Thanks for your information.