import hashlib

def check_password(hash_to_match, password): return hash_to_match == hash_password(password)

def load_dictionary(path): with open(path, 'r') as f: return [line.strip() for line in f.readlines()]

Select a language you're comfortable with. Python is commonly used for such tasks due to its simplicity and extensive library support.