You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
upload_id is generated by secrets.token_hex(8) with Python (e.g, 315428a98335c916). In the documentation of secrets, I find the following description.
As of 2015, it is believed that 32 bytes (256 bits) of randomness is sufficient for the typical use-case expected for the [secrets](https://docs.python.org/3/library/secrets.html#module-secrets) module.
This discussion was converted from issue #66 on December 22, 2023 03:14.
Heading
Bold
Italic
Quote
Code
Link
Numbered list
Unordered list
Task list
Attach files
Mention
Reference
Menu
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
-
upload_id
is generated bysecrets.token_hex(8)
with Python (e.g,315428a98335c916
). In the documentation ofsecrets
, I find the following description.https://docs.python.org/3/library/secrets.html#how-many-bytes-should-tokens-use
A 32 bytes string looks like
a0079371f017e22e21128ec11f80fbf4f9a80c43a1b01bca05ef57309f85b30f
and it seems a bit too long.I'd like to hear some opinion if it is sufficiently long for our purpose.
One can also look up past upload IDs for duplication and regenerate another ID.
Beta Was this translation helpful? Give feedback.
All reactions