Fix userphrase lifttime update
Use -1 as InitHash error code
Refactoring InitHash