Added hashing function
When passing from GUI once it trys to verify the password the GUI
success dialog causes an AWT-EventQue-0 Exception to be thrown