title: Inserting binary into MySQL from node.js
body: <p>I'm using the crypto module to create salts and hashes for storage in my database. I'm using SHA-512, if that's relevant.</p>
  
  <p>What I have is a 64 byte salt, presently in the form of a "SlowBuffer", created by <code>crypto.randomBytes(64, . . .)</code>. Example:</p>
  
  <p><code>&lt;SlowBuffer 91 0d e9 23 c0 8e 8c 32 5c d6 0b 1e 2c f0 30 0c 17 95 5c c3 95 41 fd 1e e7 6f 6e f0 19 b6 34 1a d0 51 d3 b2 8d 32 2d b8 cd be c8 92 e3 e5 48 93 f6 a7 81 ...&gt;</code></p>
  
  <p>I also have a 64-byte hash that is currently a string. Example:</p>
  
  <p><code>'de4c2ff99fb34242646a324885db79ca9ef82a5f4b36c657b83ecf6931c008de87b6daf99a1c46336f36687d0ab1fc9b91f5bc07e7c3913bec3844993fd2fbad'</code></p>
  
  <p>In my database, I have two fields, called passhash and passsalt, which are <code>binary(64)</code>s.</p>
  
  <p>I'm using the <code>mysql</code> module (<code>require('mysql')</code>) to add the row. How can I include the binaries for insertion?</p>