There is indeed seriously flawed code, and I don't really see what it is intended to achieve. How is it different from the code I gave you in Post #8?
You can guess that this topic (passwords) has been discussed here a zillion times, and you are unlikely to find a novel solution.
All the code given in this post has been tested and is intended to address the question asked.
Unless stated otherwise it is not just a demonstration.
Last edited by Philip M; 09-20-2012 at 06:45 PM..