Simple implementation of an algorithm to check the entropy of a supplied password.