def strhash(s, length, obfuscate=None):
 if obfuscate:
  hashedStr = b64c(sha512b64(s, obfuscate).lower())
 else:
  hashedStr = re.sub(STRHASH_RE, '', s.lower())[:(length - 4)]
  while (len(hashedStr) < length):
   hashedStr += b64c(sha1b64(s)).lower()
 return hashedStr[:length]

def strhash ( s , length , obfuscate = None ) : if obfuscate : hashedStr = b64c ( sha512b64 ( s , obfuscate ) . lower ( ) ) else : hashedStr = re . sub ( STRHASH_RE , '' , s . lower ( ) ) [ : ( length - 4 ) ] while ( len ( hashedStr ) < length ) : hashedStr += b64c ( sha1b64 ( s ) ) . lower ( ) return hashedStr [ : length ]
create a hash of .