How to encrypt password in React js before sending it to the API ...

How to encrypt password in React js before sending it to the API ...