Check if chosen algorithm is in tuple hashlib.algorithms