3 ms·
There's no reason that HTTP has to be insecure for the purposes here - it should be possible to implement browser-side encryption enough to securely transmit th
by bombcar 6y ago
There's no reason that HTTP has to be insecure for the purposes here - it should be possible to implement browser-side encryption enough to securely transmit the password.
You're never supposed to reinvent the encryption wheel - but this would be a use case for it.
- vbezhenar 6y agoBrowsers already scare users on HTTP pages with “not secure” labels. It’s only matter of time until they’ll require extra clicks and confirmations.
- jacob019 6y agoI like this idea. You could implement the same password hashing algorithm on the router and in javascript and just transmit the hash.
- vbezhenar 6y agoSomeone intercepts that hash and replay it to gain access to the router. You can’t solve that problem without trusted CA.
- jacob019 6y agoWell you could implement public key authentication in javascript with a password derived public key. But someone could still intercept your session cookie. You could take it even further and build out an encrypted channel, websocket, or just message based, to send all the data over and use client side rendering. Probably too complicated, but if implemented properly, it would work.
- cesarb 6y agoNo matter how complicated you make it, a man-in-the-middle pretending to be the device can simply replace your authentication JavaScript. The only way to stop an active attacker from doing that is to authenticate the device to the browser, and this cannot be done in unauthenticated JavaScript sent from the device.
- deleted 6y ago[deleted]
- deleted 6y ago[deleted]
- cesarb 6y ago> it should be possible to implement browser-side encryption enough to securely transmit the password. That only helps against passive eavesdroppers. Without a way to authenticate the device, a man-in-the-middle can easily pretend to be the device and receive the password.