Class for generating hash used for password recover