CodeIgniter Forums

Full Version: Patch Encrypt lib of CI2 with CI3's version
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
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/