Create a random string key

June 23, 2023

Type node in the terminal to enter the node environment

Enter

const randomString = require('crypto').randomBytes(16).toString('hex');

console.log(randomString);

You can enter 32 or 64 to make a larger string value

Related:

Back to home