Reputation: 472
I am developing a mobile application and a corresponding chrome extension and planning to use UDP for data communication between mobile and extension using the udp API provided in chrome
It seems there is no provision to use DTLS in chrome APIs , so I a wondering how to secure the communication.
If I decide TCP over UDP I think TLS can be used for security as per the documentation
The mobile app and extension communicate only over local network.
Thanks in advance for suggestions.
Upvotes: 0
Views: 422
Reputation: 77531
To begin with: Extensions cannot use sockets
APIs. Just so that doesn't come as a shock later. Only Apps have access to that.
That said, the sockets
API provide you access to raw sockets. That means you can implement your own security on top of it. The API method you quote is there for convenience, but it can be reimplemented.
Upvotes: 1