PHP Encrypt/Decrypt: Simple class to encrypt url data

Author: Zeeshan Rasool  |  Last updated on Codeigniter, PHP Tutorials, Web Development

Encryption is useful where critical data is being transferred in url. I have found a simple and secure encryption class with some changes to make it fit for new users. You can use it in Codeigniter websites as well. Just copy it in application/libraries directory and use it in other libraries style.
Here is the code for encryption class.

You need to include this class any where in to make your data encrypted with simple encode() or decode() functions.
If you are using it in Codeigniter then use like this

Recommended WordPress Themes Store

If you enjoyed this post, please consider leaving a comment below or subscribing to the RSS feed to have future articles delivered to your feed reader. You can also follow us on Facebook or Twitter @99Points

This awesome post has been created by 99Points editor's team. You can follow our updates on Twitter and facebook, OR drop an email at

5 to “PHP Encrypt/Decrypt: Simple class to encrypt url data”

  • atomxml June 11, 2014 at 10:33 pm

    Thank you. :)

  • Converter Bangla August 2, 2014 at 7:50 am

    Available For PHP Script Encoder, ByteRun Decoder, Base64 Encoder, Base64 Decoder, JS Compressor, CSS Compressor, Image Base64, JS Dcompressor, CSS Dcompressor, HTML Dcompressor, Code D-Organizer.

  • suga priya October 9, 2014 at 8:42 am

    Thank you so much

  • Engin July 4, 2015 at 4:28 pm

    I’ve been struggling for the last 2 hours just to find a simple encryption code and none of them worked except yours. Thank you very much!

  • titto vedder August 5, 2016 at 7:28 am

    Hi, master, how to implementing this code in codeigniter 3 ?

Email Subscriber!

Be the first to know about new updates



Popular post