mirror of
https://github.com/binwiederhier/ntfy.git
synced 2026-05-09 08:26:00 +02:00
[GH-ISSUE #453] Add "Generate topic name" button #348
Labels
No labels
ai-generated
android-app
android-app
android-app
🪲 bug
build
build
dependencies
docs
enhancement
enhancement
🔥 HOT
in-progress 🏃
ios
prio:low
prio:low
pull-request
question
🔒 security
server
server
unified-push
web-app
website
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
starred/ntfy#348
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?
Originally created by @riking on GitHub (Oct 26, 2022).
Original GitHub issue: https://github.com/binwiederhier/ntfy/issues/453
The web app and documentation should advocate for all topics that aren't "well known names" to have high entropy components. Common cryptographic wisdom is that a 2^-32 event is "not going to happen", so by the birthday bound the appropriate level of entropy is
(32 + log2(num_topics_created)) * 2bits.64 bits / 6 bits per base64 character = 10.6 characters of base64 (minimum recommendation: 11)
96 bits / 6 bits per base64 character = 16 characters of base64 - sufficient for servers with 65k random topics
128 bits / 6 bits per base64 character = 21.3 characters of base64 (reasonable maximum recommendation: 21)
@binwiederhier commented on GitHub (Oct 31, 2022):
I don't dislike the idea of having a "Generate topic name" button, though if I write "Pick something with about 96 bits of entropy", people will not understand what that means.
The thought behind ntfy has always been "simplicity over everything". That includes allowing people to use unencrypted HTTP and weak topic names if they like. Yes, we warn in the UI, but not to the extent of not allowing people to make dumb choices. I like the "Generate topic name" button (though I don't know where to put it), but I don't think people are crypto-educated enough to understand what entropy is.