DescriptionSHA1 JS impl: syntax/format updates for Shindig
* Changed goog.crypt to shindig namespace.
* Changed from prototype-style to closure-style impl.
Implementation of a random-number "generator" seeded w/ mouse movement (quite unpredictible) and screen real estate (sometimes hard-ish to detect). The idea is to build a pure-JS random() method that is much less predictible than Math.random(), which is known to be fairly easily cracked.
This has benefits for gadgets.rpc and other Shindig functionality which rely on a combination of random numbers and same-domain policy for security.
Patch Set 1 #Patch Set 2 : Posting actual saferRandom() impl. #Patch Set 3 : Small, but significant, JS fix. #Patch Set 4 : Renaming method saferRandom() to random(); adding features/NOTICE line. #
MessagesTotal messages: 11
|
|||||||||||||||||||||||||||||||||||||||||||||||||||||||