'Include and use sodium AES 256 encryption in codeigniter3

My current project built on codeigniter3 and PHP7.4 . Now i have a requirement to add sodium AES 256 encryption in my project. I have checked most of the articles on sodium encryption. As my research sodium included in codeigniter4. But moving from codeigniter3 to codeigniter4 needs a lot of work and it was a live project.

So i want to include sodium encryption and use in codeigniter3. I have google it and tried many of the articles but not found correct process to include sodium encryption in codeigniter3.

Can anyone have experience on this. Please provide some info on this.

Thanks in Advance.



Sources

This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.

Source: Stack Overflow

Solution Source