The Encrypt library requires the Mcrypt extension in codeigniter

You can override default library with your own library.

You can try below code:

Create a file: /codeigniter/application/libraries/MY_Encrypt.php

And have below code to get started:

<?php  if ( ! defined('BASEPATH')) exit('No direct script access allowed');

class MY_Encrypt extends CI_Encrypt {

    public function __construct()
    {
        //parent::__construct();
    }

    /*
    Create your custom encryption and decryption logic by
    overriding function
    */

}
🔥1.8 K Views

Do you have anything to Ask?

This site uses Akismet to reduce spam. Learn how your comment data is processed.