function hashPassword hashPassword(password: string): Promise<string> Hashes password with scrypt and a random salt, as hash.salt in hex, for users.password_hash. Parameters password: string Return Type Promise<string>