title: Customized hash function for Python
body: <p>I would like to generate a human-readable hash with customized properties -- e.g., a short string of specified length consisting entirely of upper case letters and digits excluding 0, 1, O, and I (to eliminate visual ambiguity):</p>
  
  <pre><code>"arbitrary string"  --&gt;  "E3Y7UM8"
  </code></pre>
  
  <p>A 7-character string of the above form could take on over 34 billion unique values which, for my purposes, makes collisions extremely unlikely.  Security is also not a major concern.</p>
  
  <p>Is there an existing module or routine that implements something like the above? Alternatively, can someone suggest a straightforward algorithm?</p>