coast-team / netflux

JavaScript client and server side transport API based on WebRTC & WebSocket
https://coast-team.github.io/netflux
GNU Affero General Public License v3.0
213 stars 14 forks source link

Use Web Crypto API for id generation #41

Closed kalitine closed 7 years ago

kalitine commented 7 years ago

Current behavior Netflux generates an id for each new network member and for each new WebChannel instance.

Expected behavior These ids should be generated by Web Crypto API.

What is the motivation / use case for changing the behavior? Security enhancement.

Tips NodeJS has its own Crypto API. Consider to use a polyfill or separate the implementation.