[PR #71] [CLOSED] Expand ID range to harden brute forcing #143

Closed
opened 2026-02-27 10:15:55 +03:00 by kerem · 0 comments
Owner

📋 Pull Request Information

Original PR: https://github.com/matze/wastebin/pull/71
Author: @cgzones
Created: 9/22/2024
Status: Closed

Base: masterHead: id_expand


📝 Commits (1)

  • 363988d Expand 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.

## 📋 Pull Request Information **Original PR:** https://github.com/matze/wastebin/pull/71 **Author:** [@cgzones](https://github.com/cgzones) **Created:** 9/22/2024 **Status:** ❌ Closed **Base:** `master` ← **Head:** `id_expand` --- ### 📝 Commits (1) - [`363988d`](https://github.com/matze/wastebin/commit/363988d581a457b31ada173ce9e5002373cfe225) Expand ID range to harden brute forcing ### 📊 Changes **7 files changed** (+136 additions, -52 deletions) <details> <summary>View changed files</summary> 📝 `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) </details> ### 📄 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. --- <sub>🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.</sub>
kerem 2026-02-27 10:15:55 +03:00
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
starred/wastebin-matze#143
No description provided.