The Encrypt library requires the Mcrypt extension fuel cms code example
Example: The Encrypt library requires the Mcrypt extension.
Best solution is (only available for CI 3 and up):
change $this->load->library('encrypt');
to $this->load->library('encryption');
refrence:
https://codeigniter.com/userguide3/libraries/encryption.html