mirror of
https://github.com/matze/wastebin.git
synced 2026-04-25 08:36:00 +03:00
[PR #71] [CLOSED] Expand ID range to harden brute forcing #143
Labels
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
starred/wastebin-matze#143
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
📋 Pull Request Information
Original PR: https://github.com/matze/wastebin/pull/71
Author: @cgzones
Created: 9/22/2024
Status: ❌ Closed
Base:
master← Head:id_expand📝 Commits (1)
363988dExpand ID range to harden brute forcing📊 Changes
7 files changed (+136 additions, -52 deletions)
View changed files
📝
CHANGELOG.md(+5 -0)📝
src/cache.rs(+20 -2)📝
src/db.rs(+11 -11)📝
src/id.rs(+95 -34)📝
src/routes/form.rs(+2 -2)📝
src/routes/json.rs(+2 -2)📝
src/routes/mod.rs(+1 -1)📄 Description
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.
🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.