Storing password hash values in atlas for recalculating locally

Hi I am trying to store a bcrypt hashed passwd in atlas, in a binary field but when i compare with one generated locally they dont match, I dont think it’s the code, it’s straight out of the python brcypt how to. But binary fields seem to do something to the data.

thanks, and apologies if this has been raised before, blame impatient newbie.