-
-
Notifications
You must be signed in to change notification settings - Fork 4.1k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Make configurable length of shared link token #419
Comments
You are right, but there are some other users, using more than 1000 files and shares 😜 I think shortening the URL makes sense anyway. An option for personalize the URLs would be nice. I think of something like If the URL is too long for your use (e.g. Twitter) you could also shrink the URL with a service like |
@Mar1u5 okay, lets use simple math. Now we have 15 symbols for 4 481 381 406 320 combinations. Almost 5 trillion? Really? Why? |
It is not only about the number of possible shares. It is also about security. You don't want people to be able to guess your tokens. |
@rullzer okay, we can show people some attentions about security and by default set 15. PS. Sorry for my bad English... |
Well a password is yet another thing to distribute. With 15 tokens you are fairly safe to somebody even finding a link that works. It is all about reducing the attack vector. |
@rullzer I understand that it's reducing. But It's not the "critical security point", it's just a little plus to security. I think it should be customizable with some attentions. Why I have to use goo.gl, bit.ly and other such services if I already have short domain name that enough for me? I use Nextcloud with ShareX for fast creating gifs, screenshots, videos, etc. An indispensable thing (just try!) And I always get those long links! This is the only negative. |
If you already have a short domain name, https://yourls.org could be a workaround ... this is for hosting your own URL shortener. Maybe you could also develop an proper integration as an app 😉 |
I get that it is one of things that is nice to have. but it is another configuration variable in the matrix. With the potential downside that if people mess up (and people will mess up) exposed data. I agree with @Mar1u5 that an app that does shortning would be better. |
@Mar1u5 thanks for idea with yourls.org. Just installed it on my server. With ShareX I automated it: |
You made some errors and unfortunately no one has noticed it yet.
Your math is not simple enough 😉
This totals 52 characters. The formula you used: is for calculating the number of ways to choose 4 distinct items from a set of 52 without regard to order. This formula assumes that each character can only be used once. This calculation is correct for determining combinations when items cannot be repeated and the order does not matter. But since in this case the string can be filled by any of the 52 characters with repetition allowed, the correct formula to calculate the number of possible combinations is .. where
Calculation: and for the others: Tokenlength = 5 correct: Tokenlength = 6 correct: and here some more:
and just f.y.i., the maximum possible
I would classify the use of URL shortening services as a much greater security risk. ernolf |
Thanks for the clarification, I would agree now after 8 years, especially after working for 3 years in information security :D |
For example now, I have this:
l33t.host/s/CpjUhnJuFEyMQzn
And we can have this:
l33t.host/s/AvJHo
But It's my personal service for maybe 1000 or 10000 (max!) shared files.
And for this aim even 4-5 characters is enough. Why 15?
In Owncloud we don't have theming, now we have, and it's very cool. So why not?
The text was updated successfully, but these errors were encountered: