code: def _hash(number, alphabet):
      
      hashed = ''
      len_alphabet = len(alphabet)
      while True:
          hashed = alphabet[number % len_alphabet] + hashed
          number //= len_alphabet
          if not number:
              return hashed
docs: Hashes `number` using the given `alphabet` sequence.