Error with the encode password function |
[eluser]jgodino[/eluser]
Error with the encode password. I cannot use the forgot_password function. We are calling the same function $this->encrypt->encode with the same key and I receiving differents values. Is is a bug? Thanks First call DEBUG - 2009-07-18 19:14:22 --> Rutine confirm_password. New Key:v2rh8PwW39CL DEBUG - 2009-07-18 19:14:22 --> Rutine confirm_password. New Key Encode: Codificada:wBLAnPyS7xBRHWRTPTb4Su9sltW8307q7O1OqHc0id80l3A2Nv8JWToNn3KyJ46TZae+dTHweLKEr2IE/KfhHw== Second call DEBUG - 2009-07-18 19:17:20 --> - login_routine: PWD Pwd: v2rh8PwW39CL DEBUG - 2009-07-18 19:17:20 --> - login_routine: PWD Pwd Encode: mgHLDiZ6U/djeZB9DhCNwsBVzoCV9seeE3EfRNnufqkICbVHuRZhYg0wbb5EguqCAdITIbnO0Vncc/+cPmVQdQ== Javier Function confirm_password. -------------------------- login.php Code: function confirm_password() LOG Code: DEBUG - 2009-07-18 19:14:22 --> Rutine confirm_password. New Key:v2rh8PwW39CL Function Log ------------ Site_entry.php Code: function login_routine() LOG Code: DEBUG - 2009-07-18 19:17:20 --> login_routine. INICIO
[eluser]jgodino[/eluser]
Yes. I have a key in my config.php. /* |-------------------------------------------------------------------------- | Encryption Key |-------------------------------------------------------------------------- | | If you use the Encryption class or the Sessions class with encryption | enabled you MUST set an encryption key. See the user guide for info. | */ $config['encryption_key'] = "encryption_key_Gg2F55454";
[eluser]TheFuzzy0ne[/eluser]
How are you decoding the password? Are you passing in a second parameter? That's the only thing I can think of that could possible give you a different result each time.
[eluser]jgodino[/eluser]
The problem began because the retrieve password options didn't work. I did changes in the code and I don't know what changes I did. One of the changes that I did was to change decoding to coding the password again. I will return to the begining and I will post the correct problem. "Retrieve Password Options" Thanks
[eluser]Iván Argulo[/eluser]
Can you try with the function dohash(), in security helper?
[eluser]Iván Argulo[/eluser]
It checks if the function sha1 is avaliable, if the module mhash is installed. If not, it uses its own library to generate sha1 or md5. But you cannot reverse the encryption. http://ellislab.com/codeigniter/user-gui...elper.html It works great for me |
Welcome Guest, Not a member yet? Register Sign In |