Hashing for passwords + tests