Hacker News new | ask | show | jobs
by ricardobeat 4223 days ago
Server-side js has that already. On the clientside it would be useless.
1 comments

What about p2p?
There is a problem with JavaScript in that there is no security mechanism currently in place to ensure the JS file you are running is what you expect to be running.

Imagine your on your favourite social network that used a JS based encryption in a p2p chat to your friend. On that same page advertisers are pushing content to you. That content could be a malicious JS file which can eavesdrop on your conversation, all the while you think its encrypted.