change algorithm to generate salted password