Welcome Guest, Not a member yet? Register   Sign In
codeiginter encrypt and decrypt producing new value after each refresh
#1

Sir,

I am using codeiginter 3.1.5 in MAMP Pro.

I have used encrypt library to encrypt the data and send in the url.

When I try to decrypt is not decrypting to the actual value. Each time when I refresh it gives new value because of this I can't get the original value.

encrypt value - wpK8mhnVpEhfc1rv9aDq6A==
decrypt - <<nothing>>

actual value = 1

please help me I tried a lot forums to find the solution.
Reply
#2

Did you create an encryption key?

Did you store the encryption key in the ./application/config/config/php file?
What did you Try? What did you Get? What did you Expect?

Joined CodeIgniter Community 2009.  ( Skype: insitfx )
Reply
#3

(09-02-2017, 03:33 AM)InsiteFX Wrote: Did you create an encryption key?

Did you store the encryption key in the ./application/config/config/php file?

Yes I have stored.. no problem in that.

encryption value changes for every refresh and can't be decrypted
Reply
#4

Can you show us your code?
Reply
#5

It is supposed to be different each time; that doesn't mean it can't be decrypted.
Reply




Theme © iAndrew 2016 - Forum software by © MyBB