If you are switched from CI2 XAMPP(php5) to XAMPP(php7) then, paste encrypt.php in CI->system->libraries folder, after this it should be fine link for encrypt.php file:https://github.com/kpushpendra81/exam/blob/master/encrypt.php