Generate 64 byte random secret key using nodeJS

 


Step 1: Go to your command line interface and type: node

Step 2: the type following command line and it will generate a 64 character random string. 

require('crypto').randomBytes(64).toString('hex')

and this command will result something like below:

58d819d66bb1b8fc2da29f85756954ae37594bcec33dc53bdf884c3c571cf208f6d712c52c08f3c7973bc6d7d21eb382e3472b3ecc33c27bb9deefb97a9a0c16

Post a Comment

0 Comments