title: How to create private key and public key with web3?
body: <p>I want to create a private key and public key, basically a new account in Ethereum using web3. But I want to generate a private key that is 32 bytes in length. Does anyone know how to generate the same?
  Used the following code, but not able to generate a 32 bytes long private key.</p>
  <p><div class="snippet" data-lang="js" data-hide="false" data-console="true" data-babel="false">
  <div class="snippet-code">
  <pre class="snippet-code-js lang-js prettyprint-override"><code>web3.eth.accounts.create();</code></pre>
  </div>
  </div>
  </p>