THE WEB CRYPTOGRAPHY API
The Web Cryptography API (https://www.w3.org/TR/WebCryptoAPI
) describes a suite of cryptography tools that standardize how JavaScript can wield cryptographic behavior in a secure and idiomatic fashion. These tools include the ability to generate, use, and apply cryptographic key pairs; encrypt and decrypt messages; and robustly generate random numbers.
Random Number Generation
When tasked with generating random values, most developers reach for Math.random()
. This method is implemented in browsers as a pseudorandom number generator (PRNG). The "pseudo" designation stems from the nature...