I am working on a mobile app (android, ios). Users login in the mobile app by entering email and password of office 365 and authentication is done through php-ews (exchange web services for office 365). We will be using few calendar and email retrieval web services in the mobile app.
What is the best way to encrypt the password while storing it in the backend database?