Bcrypt doesn't seem to work when Salt round is passed 20
var token = await bcrypt.hash('abcxyz', 20);
// It just hangs there
But passing 10 works perfectly.
Salt rounds 20 will make 10^20, 2^20 rounds, this will take almost 6 years to return a result.
Not really 6 years. More like 1 - 2 minutes depending on your CPU. And it's 2^20 rounds.
Most helpful comment
Salt rounds 20 will make
10^20, 2^20 rounds, this will take almost 6 years to return a result.