wastebin icon indicating copy to clipboard operation
wastebin copied to clipboard

Expand ID range to harden brute forcing

Open cgzones opened this issue 1 year ago • 2 comments

Expand the value space from 2^32 to 2^64, resulting in keys of length 11 instead of 6. In particular important for one-time-pastes. i64 is used as inner type since sqlite does not support storing u64.

cgzones avatar Sep 22 '24 10:09 cgzones

If I see correctly, this will break all existing paste ids?

matze avatar Sep 23 '24 08:09 matze

Added backwards compatibility.

cgzones avatar Sep 25 '24 17:09 cgzones

Thanks for the inspiration, I took some of the ideas for 89b215d53309f8fd1632ec4914a023e692b1c716 and credited this prior contribution of yours. Hope that is okay and that I close this PR as being done.

matze avatar Mar 03 '25 20:03 matze