6 ms·
a cryptographically secure pseudorandom number generator would be nice, too.
by alexjeffrey 12y ago
a cryptographically secure pseudorandom number generator would be nice, too.
- ricardobeat 12y agoServer-side js has that already. On the clientside it would be useless.
- ajuc 12y agoWhat about p2p?
- nextw33k 12y agoThere 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.
- realusername 12y agoIsn't crypto.getRandomValues created just for this purpose ?