Same Password For Web Application And Mobile Application

I need to use the same password for web application and mobile application which is in encrypted form.

Web app and Mobile app are useing the same database SQL Server.

For Web Application - Yii Framework

For Mobile Applucatin - Apple ios

How to have the same encryption for Yii PHP and Apple iOS?