Correction: from the hash digest of course. Not the preimage. That doesn't need bruteforcing!