4 ms·
Why not add a random suffix? http://{address}:{port}/{32-bytes http://{address}:{port}/{32-bytes from /dev/urandom as hex} If the URL isn't being manually ente
by koolba 9y ago
Why not add a random suffix? http://{address}:{port}/{32-bytes http://{address}:{port}/{32-bytes from /dev/urandom as hex}
If the URL isn't being manually entered (I mean that's the whole point of the QR code right?) then adding some random unguessable text would solve the problem of something else on your network connecting to that port. It doesn't solve the problem entirely as it's still possible to MITM the HTTP connection but it's a tad more difficult.
- daw___ 9y agoThanks, very good point. Initially I thought that shorter the better for URL, but since it doesn't have to be entered then it makes sense to make it a bit longer to be unguessable (and for sake of completeness, the port is randomly decided at each run).
- Zenbit_UX 9y agoI'd actually rather not have this addition. Despite your marketing this as a desktop > mobile transfer right now there's no reason your app can't be used for desktop > desktop sharing unless you add that random string. I can see myself using this to move files quickly between a desktop and a laptop or vice versa by ignoring the QR code and just putting in the port. Alternatively you could try the gfycat method by appending a few adjectives and a noun to create a readable but nonsensical phrase: https://gfycat.com/enlightenedpositiveasianporcupine https://gfycat.com/enlightenedpositiveasianporcupine But IMHO If security on your own network is so intense that a random app opening temporarily on a random local port is a security concern then this app isn't for you.
- koolba 9y agoThat’s what netcat is for! Host A: $ nc -l 12345 < data.txt Host B: $ nc host-a-or-its-ip 12345 > data.txt
- Zenbit_UX 9y agoSure that's useful, thanks. Although his app handles both use cases (desktops & phones).
- jakobegger 9y agonc is probably already installed on your desktop, though
- arantius 9y agohttp://www.home.unix-ag.org/simon/woof.html http://www.home.unix-ag.org/simon/woof.html
- jermaustin1 9y agoOr to be less dependent on a specific OS, use a hash of the file's name/path/content?