Best Method For Two Way Password Encryption

HI ENVERYONE,

ANYBODY KNOWS HOW TO USER TWO WAY ENCRYPTION FOR PASSWORD IN YII.MD5 USE ONLY ONE WAY ENCRYPTION.HASH ALSO SAME WAY.

SO WHAT SHOULD USED TO SAVE ENCRYPTED/HASHED PASSWORD AND VIEW IN PLAIN FORMATION AND UPDATE IN CRYPTION/HASHED FORMAT.

PLZ HELP????????????

I really think you have a wrong definition (or imagination) on this topic and this has nothing to do with Yii.

It is simple: You can not. This is the purpose of 1-way mathematical(!) functions that provide a one-way street to hash passwords (and other things). You can not revert this process (unless you are a hacker with spare time and rainbow tables ;) )

btw: caps-lock might be stuck on your keyboard…

See this stackoverflow question: Best way to use PHP to encrypt and decrypt?

I recommend you do your homework carefully and when and if you decide on hashing your passwords, as the first answer in the mentioned stackoverflow suggests, I recommend going with phpass extension. Be sure to read the comments of that extension as well (in the link given).

thanks toooooooooooo muchhhhhhhhhhh.