title: String to unique integer hashing
body: <p>I'm trying to develop a system that can change my string into a unique integral value, meaning say for example the word "account" has an encrypted numerical value of 0891 and no other word can possibly be converted to 0891 with the same conversion process, it does <strong>not</strong> however need to be able to be converted back the generated integer to string.</p>
  
  <p>At the same time it will be dependent on the word structure rules, meaning words such as "accuracy" and "announcement" will have a generated number greater than 0891 and words such as "a", "abacus" and "abbreviation" will have a generated number less than 0891.</p>
  
  <p>The purpose of this application is to serve similar to an index or primary key. The reason why I'm not using an increment index is for security purposes and is due to the indexes dependency to the number of data in the set</p>
  
  <p>(e.g.)</p>
  
  <pre><code>[0] A, [1] B, [2] C, [3] D, [4] E, [5] F
  </code></pre>
  
  <p>The above letters has each corresponding index, E has the index of 4</p>
  
  <p>However if the data is suddenly increased or decreased then sorted</p>
  
  <pre><code>[0] A, [1] AA, [2] AAB, [3] C, [4] D, [5] DA, [6] DZ, [7] E, [8] F
  </code></pre>
  
  <p>E now has the index of 7</p>
  
  <p>Each word must have a unique independent integral equivalent and has the corresponding weights.</p>
  
  <p>I need to know if there exist an algorithm that can do the above.</p>
  
  <p>Any help will be appreciated.</p>