|
|
|
|
|
by eliteraspberrie
3839 days ago
|
|
I'm the average Javascript programmer. I'm writing some web app and I need to do some cryptography. Let's see, there's Math.random and Crypto.getRandomValues. Let's go with Math.random, for shiggles. I'm probably copy-pasting from Stack Overflow. Will renaming a function or two fix my bad behaviour? The answer to "Should I use Math.random or X" is neither! I should be using a cryptography library like SJCL or tweetnacl-js: http://bitwiseshiftleft.github.io/sjcl/ http://dchest.github.io/tweetnacl-js/ |
|