Added class for generating hashes for use in passwords