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 - Custom OutputStreamAppender not run: LOGBACK: No context given for <MYAPPENDER> -

java - UML - How would you draw a try catch in a sequence diagram? -

c++ - No viable overloaded operator for references a map -