secure-compare

Securely compare two strings, copied from cryptiles

entropy-string

Efficiently generate cryptographically strong random strings of specified entropy from various character sets.

simple-random

A simple flexible javascript library that creates random alpha-numeric strings. Works in both NodeJS and the browser.