Welcome Guest, Not a member yet? Register   Sign In
Why does encode() return a different value each time?
#1

[eluser]lanzd[/eluser]
Normally when I storing passwords I md5() them because I normally don't intend on ever retrieving them, only resetting them if anything.

I am new to CI and tried out
Code:
$this->encrypt->encode('testPassword');

It seems to generate a different result each time I load the page. I understood the CI documentation as using whatever value I set as my encryption key in my config.php file as a salt and worked from there.

Shouldn't that produce the same result? or does the encode use a timestamp or something in addition to that?

I know I can just you md5() which I am currently still using, but I was curious about this behavior.

Thanks, Dan



Messages In This Thread
Why does encode() return a different value each time? - by El Forum - 11-30-2012, 03:46 PM
Why does encode() return a different value each time? - by El Forum - 12-01-2012, 02:19 AM
Why does encode() return a different value each time? - by El Forum - 12-05-2012, 11:12 AM



Theme © iAndrew 2016 - Forum software by © MyBB