Calculating bloomfilter bits for passwords