• 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
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 the CodeIgniter Community in 2009.          ( Skype: insitfx )
Reply

#3
(09-02-2017, 04: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


Digg   Delicious   Reddit   Facebook   Twitter   StumbleUpon  


Users browsing this thread:
1 Guest(s)


  Theme © 2014 iAndrew  
Powered By MyBB, © 2002-2017 MyBB Group.