password hashing function, fix to editor