Improved security of the master password hash. Fixed bug in the password generation algorithm.