Random hash in node js Can be used to generate secret api key. require('crypto').randomBytes(64).toString('hex')