how to encrypt password in react