put scrypt hashing in a callback