usersystem: Refactor hashing