Replaced the algorithm used for generating passwords. It is less complex, but the modification of the password each iteration is still very much arbitrary and probably insecure.