▲ | bearjaws 11 hours ago | |||||||
only 32bits, so 4 billion guesses per microsecond... Even if youtube has 1 million videos per microsecond you would never guess them before rate limits. | ||||||||
▲ | 8organicbits 8 hours ago | parent | next [-] | |||||||
You're mixing a couple things. The 32 bit random occurs in the Python implementation, which uses a millisecond counter. The numbers you provided are suspicious, but seem quite feasible to attack. 1M IDs in 4B means each guess has ~ 1-in-4000 chance. You can make 4000 requests in an hour at a one-per-second rate. A successful attack can guess one ID, it doesn't need to enumerate all of them. | ||||||||
| ||||||||
▲ | Incipient 5 hours ago | parent | prev [-] | |||||||
Not sure if this is helpful here, but you're still looking at 32 bits of randomness, regardless of the time window. Use it for anything that you feel that's enough randomness to secure - a private home video of a cat braking a cup? Sure. File sharing endpoints for a business? No. Use another uuid4 based 'sharing uuid' that you map internally to the PK uuid7. |