Coder Social home page Coder Social logo

Comments (8)

timvisee avatar timvisee commented on July 18, 2024 1

Thanks for the idea.

It is however not a good thing to implement this, simply because it breaks end-to-end encryption. The encryption key is stored in the share URL. When shortening the URL, you're giving the secret key to the link shortener which is not desirable.

There's a catch though, ffsend (a CLI for Send) does have this feature implemented with the --shorten flag.

I hope you understand why I won't be implementing this.

from send.

widestorm avatar widestorm commented on July 18, 2024

Thanks for the quick answer, although giving the key to a link shortener that is self hosted on my end doesn't seem like such a big problem.
Thanks for the hint about the ffsend flag! 👍

from send.

timvisee avatar timvisee commented on July 18, 2024

Even if you self-host, it still breaks end-to-end encryption. But yes that may be a risk you can accept.

How do you imagine this feature to look like? A shorten button when a file is uploaded, or shorten all share URLs by default based on a configuration property? I assume you'd like to see this for a self hosted Send instance as well.

from send.

widestorm avatar widestorm commented on July 18, 2024

Since it would just redirect to the original URL wouldn't it work just like it did before?

That would probably be the easiest option, after you're presented with the link adding an additional button to shorten it through the link shortener. And then you're presented with the shortened version below.
The link shortener then manages the redirection and the original send link stays the same.

In this case it won't break the original url with the decryption key and the shortened version still would be quite difficult to guess since this and most other link shortener services are case sensitive.

from send.

widestorm avatar widestorm commented on July 18, 2024

See this as an example:
https://link.*****.ch/MA6X

I manually shortened it after I got the original send link.
image

from send.

timvisee avatar timvisee commented on July 18, 2024

Oh yes, this is definitely something that works. I meant to say that this breaks end-to-end encryption from a security standpoint.

To better describe why this is the case: You want the uploading and the downloading user to be an 'end', with no possibility for a third party in between to read your files. When using a link shortener, the shortener gets to know the secret key, essentially breaking this concept. Yet again, even though this breaks end-to-end encryption from a security standpoint, it does still work and it might be a risk you can accept.

In any case, I'd be fine with it to get it implemented behind a configuration property. I'm quite busy the upcoming weeks though, so I'm not sure when I have time to implement this. You mentioned that you don't have much programming experience, feel free to give implementing part of it a try and ask for help here. If there's anybody else who'd like to give it a go, please do!

from send.

timvisee avatar timvisee commented on July 18, 2024

I've added an implementation issue for this over on GitLab: https://gitlab.com/timvisee/send/-/issues/21

from send.

t3dium avatar t3dium commented on July 18, 2024

The encryption key is stored in the share URL. When shortening the URL, you're giving the secret key to the link shortener which is not desirable.

Would this still be still be an issue if putting a password on the send?

from send.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.