Comments (7)
The room IDs are just randomly generated alphanumeric strings. AFAIK there is no character limit for the announce URL, it's just the generator is using 16 char length. You can use whatever you want as the room ID and it will just work they are not stored anywhere, and there is no server-side room ID validation. The server just connects peers that use the same room ID.
https://github.com/meehow/privtracker/blob/master/docs/index.html
function makeRoom(length) {
var roomID = '';
var characters = 'abcdefghijklmnopqrstuvwxyz0123456789';
var charactersLength = characters.length;
for (var i = 0; i < length; i++) {
roomID += characters.charAt(Math.floor(Math.random() * charactersLength));
}
var urls = document.getElementsByClassName('url');
for (var i = 0; i < urls.length; i++) {
urls[i].innerText = urls[i].innerText.replace('{{room}}', roomID);
}
document.getElementById('hidden').style.display = 'block';
}
from privtracker.
It's been about a month without anyone else opening a PR, so I decided to do it.
from privtracker.
You can use whatever you want as the room ID and it will just work they are not stored anywhere, and there is no server-side room ID validation. The server just connects peers that use the same room ID.
Then there should be some kind of notice or function on the website that lets people know this that so they can enhance their privacy by using their own random number generator to create any size room ID they want. Maybe also a drop-down list to let people select how long they want their room ID to be. Right now it's a little too basic.
from privtracker.
16 characters from 36 character set, that's 7958661109946400884391936 combinations. If someone will manage to make 1000 requests to the server per seconds it will take 7958661109946400884391936/1000/3600/24/365 = 252367488265677 years to brute force it. And you need to repeat it for every file (info hash) you are looking for.
from privtracker.
16 characters from 36 character set, that's 7958661109946400884391936 combinations. If someone will manage to make 1000 requests to the server per seconds it will take 7958661109946400884391936/1000/3600/24/365 = 252367488265677 years to brute force it. And you need to repeat it for every file (info hash) you are looking for.
I still think real private trackers use 32 character passkeys for a reason and following suit seems reasonable. There's no reason not to.
from privtracker.
There's no reason not to.
Agreed. Feel free to open a pull request.
from privtracker.
thanks, merged
from privtracker.
Related Issues (7)
- support contact HOT 1
- README says "fiends" instead of "friends" HOT 1
- Domain is hard-coded HOT 3
- build on debian 11 HOT 4
- IPv6 support in privtracker v1.0.2 HOT 2
- Full ipv6 support HOT 4
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from privtracker.