title: Node.js 10 Digit Hash Code from String
body: <p>I have the following strings:</p>
  
  <pre><code>"184500000712_1_new_store1",
  "184500000712_4_new_store1",
  "184500000712_12_new_store1",
  "195600000819_1_new_store2",
  ...
  </code></pre>
  
  <p>I am trying to turn each individual string into a unique 10-digit code like so:</p>
  
  <pre><code>184500000712_1_new_store1 =&gt; K14K4O9WVQ
  184500000712_4_new_store1 =&gt; E93N7L2PXC
  184500000712_12_new_store1 =&gt; A89F5I6JIO
  195600000819_1_new_store2 =&gt; J00B1I5KFU
  </code></pre>
  
  <p>Also the string-to-code output must always be consistent. Fe, <strong>utf-8 base64</strong> encoding of the string <code>184500000712_1_new_store1</code> would always output the code <code>MTg0NTAwMDAwNzEyXzFfbmV3X3N0b3JlMQ==</code> </p>
  
  <p>Thanks!</p>