Generate Random Secret Token (64 bit) use the command line

Easily Generate a Random Secret Token (64 bit) using the command line.

First Open the Command line or any shell

  1. node
  2. require(“ crypto”).randomBytes(64).toString(“hex”)
Show on windows power shell

Then this 64-bit hex code we are using for JWT

--

--

Md Rashidul Islam

I'm a caring MERN stack Developers. I have over 2 years experience of web developing and responsive website design. I count myself a hardworking person.