CodeIgniter Forums
Patch Encrypt lib of CI2 with CI3's version - Printable Version

+- CodeIgniter Forums (https://forum.codeigniter.com)
+-- Forum: Using CodeIgniter (https://forum.codeigniter.com/forum-5.html)
+--- Forum: General Help (https://forum.codeigniter.com/forum-24.html)
+--- Thread: Patch Encrypt lib of CI2 with CI3's version (/thread-63046.html)



Patch Encrypt lib of CI2 with CI3's version - bbalet - 09-19-2015

Hi,

I'm using CI2 for an OSS project and the bottleneck is always _add_cipher_noise and stuffs inside the Encrypt lib which I don't use elsewhere in my project.

I can't migrate to CI3 because it would impact too much my users for a little benefit.

I tried to replace the Encyption lib in my source with the v3.0's lib (by changing its name) and changed the calls to encode/decode by crypt/decrypt in the Session lib (I didn't modify something else into Session lib). So far it is working. I think it's due to the fact that I'm not using the Encyption lib in the application and that's only used to encrypt the secured session cookie.

What do you think of this ugly pacth ?

https://github.com/bbalet/jorani
http://demo.jorani.org/