MDL-35332 lib: Improve security of hashed passwords