def _hash_wordlist(wordlist, hashing_algorithm):
    """Hashes each of the words in the wordlist and yields the digests for each
  word.

  Parameters:
    - wordlist: The wordlist which we'll be hashing.
    - hashing_obj: The hashlib hashing algorithm which we'll be passing to the
      appropriate function to actually hash the word.

  Yields:
    - Hexadecimal digest of the given word.

  """
    for word in wordlist:
        hashing_obj = hashing_algorithm.copy()
        hashing_obj.update(word.encode())
        return_string = hashing_obj.hexdigest() + ':' + word
        yield return_string
