Skip to content

Instantly share code, notes, and snippets.

View chinloongtan's full-sized avatar

chinloong chinloongtan

View GitHub Profile
@chinloongtan
chinloongtan / generate.js
Created August 3, 2020 14:46 — forked from dehamzah/generate.js
Generate secret key in NodeJS
require('crypto').randomBytes(48, function(err, buffer) { var token = buffer.toString('hex'); console.log(token); });