import hashlib


def get_hash_of(plain_text, algo):
    """ Getting hash value of plain text with a specific hashing algo.

    Args:
        plain_text ([string]) : [word that was readed from the word list]
        algo ([string])       : [hashing algorithm]

    Returns:
        hashed([string])      : [the hashed value of plain text with passed hashing algo.] """

    hashed = hashlib.new(algo)  # passing the hashing algo.
    hashed.update(plain_text.encode())   # get the hash value with given hash algo. 
    return hashed.hexdigest()