summaryrefslogtreecommitdiff
path: root/paste/s3.py
diff options
context:
space:
mode:
authorJohn Turner <jturner.usa@gmail.com>2025-09-23 21:11:01 -0400
committerJohn Turner <jturner.usa@gmail.com>2025-09-23 21:48:01 -0400
commit83040f948f6e8264fb427b5d9cf338f46a906fe1 (patch)
treed0efab55a60a10c638df2e5b4194a060c9a85c38 /paste/s3.py
parent2aa14b931f1a4fa7f465537b5310217b84615203 (diff)
downloadpypaste-83040f948f6e8264fb427b5d9cf338f46a906fe1.tar.gz
change keys to 78 bit random tokens and humanize the result
Instead of picking random words via a random choice function, we generate a 13 * key_length bit random int as the key. We humanize the key by splitting it up into 13 bit segments and using the 13 bits as an index into the word list. This allows us to store the keys in binary form which is faster and uses less space.
Diffstat (limited to 'paste/s3.py')
0 files changed, 0 insertions, 0 deletions