Welcome Guest, Not a member yet? Register   Sign In
Encryption library - can't decode old values despite not changing encryption key
#1

[eluser]mattpointblank[/eluser]
Hi everyone.

My webstore app records sensitive user info in the database using CI's Encryption class.

Previously, an encrypted name looked like this:

Code:
AhsPNQclUTwBJFY3

Today they look like this:

Code:
Y/R9x2qO/qnj6zn9uhv4Lvy1gPuo+8dqKc0dNSh8JczHQt8HVdhZyMb1uLBdBeP9BrM/u1C+E7dm1A7/G6XQLA==

I haven't changed my encryption key (double and triple checked this). The key is the same on my local (test) app and on my remote (live) app.

The odd part is that when I try to decrypt order information on my local server, it can only decrypt orders which use the 'short' form of the encryption. When I run the same operation on the live server, it can only decrypt the 'long' ones. I verified that both sites are using the same encryption key, and they run off the same database.

Does anyone have any idea what this could be? 90% of the data stored in the database was generated on the live site, and we've never had an issue with this before until yesterday.

Thanks
Matt


Messages In This Thread
Encryption library - can't decode old values despite not changing encryption key - by El Forum - 03-11-2010, 03:51 AM



Theme © iAndrew 2016 - Forum software by © MyBB