simple-randstring
Create random strings fast
Usage:
// Use Math.random() to create random strings, fast but not secure// Default charset is [0-9a-zA-Z] // Use window.crypto( on the browser ) or crypto( on node ) to create random strings// The speed is only half compare to Math.random() but it is more secure// If window.crypto is not supported , it will fall back to use Math.random()
// Define your own charset // Return something like ')ag)(#fbe@!a%g%$g(b#'