how to encrypt and decyrpt password

Read -> hash salt password - Google Search