Encrypt Password in Android and verify it wit PHP / Yii -


i use yii framework in php, , encrypt password in database, use :

$pass = cpasswordhelper::hashpassword ($this->newpassword); 

to verify password match, use :

    if (!cpasswordhelper::verifypassword($this->currentpassword,$this->_user->passwd)) { ...     } 

now, have send encrypted password android device. should send without encryptation , process php, doesn't seem secure send clean password.

so, there way in android encrypt pass same way cpasswordhelper does???? [ thing don't know encryptation / hash applied in php ]

any appreciated!

tx


Comments

Popular posts from this blog

java - Ebean enhancement ignores a model -

ubuntu - How to disable Kernel Module Signing in linux -

SQL php on different pages to Insert (mysqli) -