Welcome Guest, Not a member yet? Register   Sign In
Encoding a password
#1

[eluser]Kemik[/eluser]
Hello,

I'm trying to use CI's $this->encrypt->encode() function to encode the users password and check it against the one in the database so they can login.

However, if I encode "test" the result changes every time. E.g. "test could = dfs77fdshdsfdfs= but then DSUDSDSDhds= next time (I just typed random characters there btw).

They always seem to have an = at the end of the string though.

What's the best way to encode a password and keep the string the same every time?

Edit. I've done some tests...

Password: test1
Password Hash: EhfaYeOPfM/rtDvbrJh/EecblQSrVtDfP6x/Lg8toug=
Decoded: test1

Password: test1
Password Hash: /HFJAzH04ublyUWzMgwhlLv/Q1SPEfpQ3QaCX0eDpOE=
Decoded: test1

There's just two examples.


Messages In This Thread
Encoding a password - by El Forum - 09-14-2007, 07:27 AM
Encoding a password - by El Forum - 09-14-2007, 07:34 AM
Encoding a password - by El Forum - 09-14-2007, 07:42 AM
Encoding a password - by El Forum - 09-14-2007, 08:07 AM
Encoding a password - by El Forum - 09-14-2007, 08:07 AM
Encoding a password - by El Forum - 02-26-2009, 01:31 PM
Encoding a password - by El Forum - 05-22-2014, 07:10 AM
Encoding a password - by El Forum - 05-22-2014, 07:43 AM
Encoding a password - by El Forum - 05-22-2014, 07:49 AM
Encoding a password - by El Forum - 05-22-2014, 08:08 AM
Encoding a password - by El Forum - 05-23-2014, 02:54 PM
Encoding a password - by El Forum - 06-05-2014, 08:27 AM



Theme © iAndrew 2016 - Forum software by © MyBB