php error The Encrypt library requires the Mcrypt extension in codeigniter

0 votes

I have a  login and sign-up form and use the encrypt library to encrypt the password. login and sign up form and use the encrypt library to encrypt the password. 

Code to encrypt the password:

$this->encrypt->encode('my password'); 

Add encrypt library

 $autoload['libraries'] = array('encrypt');

Setting the secret key in config:

$config['encryption_key'] = 'nmsc encrypt secret key';

 when I try to upload it to my website to the ubuntu server I've got an error that says

The Encrypt library requires the Mcrypt extension

How can I fix this? 

Jun 20, 2022 in PHP by Kithuzzz
• 38,000 points
3,882 views

No answer to this question. Be the first to respond.

Your answer

Your name to display (optional):
Privacy: Your email address will only be used for sending these notifications.
0 votes

Just change:

 $this->load->library('encrypt');

To:

 $this->load->library('encryption');

I hope this helps you.

answered Jun 21, 2022 by narikkadan
• 63,600 points

edited Mar 5

Related Questions In PHP

0 votes
1 answer

Error:PHP Warning: POST Content-Length of 8978294 bytes exceeds the limit of 8388608 bytes in Unknown on line 0

Hello @kartik, 8388608 bytes is 8M, the default ...READ MORE

answered Sep 17, 2020 in PHP by Niroj
• 82,840 points
29,033 views
0 votes
1 answer

How can I enable the MySQLi extension in PHP 7?

Hello @kartik, The problem is that the package ...READ MORE

answered Oct 30, 2020 in PHP by Niroj
• 82,840 points
4,053 views
0 votes
1 answer

Error: The mbstring extension is missing. Please check your PHP configuration

Hii, Edit the php.ini file: change extension_dir = "ext" into extension_dir = "D:\php\ext" (please write ...READ MORE

answered Oct 30, 2020 in PHP by Niroj
• 82,840 points
8,994 views
0 votes
0 answers

phpMyAdmin Error: The mbstring extension is missing. Please check your PHP configuration

The phpMyAdmin is not running properly for ...READ MORE

Jul 22, 2022 in PHP by Kithuzzz
• 38,000 points
900 views
0 votes
0 answers

Why Isn't the MongoDB Extension Loading in PHP Despite Following Installation Steps?

Can someone exlpain me with the code ...READ MORE

Mar 6 in PHP by Nidhi
• 11,580 points
92 views
0 votes
1 answer
0 votes
1 answer

CodeIgniter removing index.php from url

To solve your doubt, use the following ...READ MORE

answered Feb 23, 2022 in PHP by Aditya
• 7,680 points
1,358 views
0 votes
0 answers
0 votes
0 answers

php extension mcrypt must be loaded

When I tried to install Magento on ...READ MORE

Jun 16, 2022 in PHP by narikkadan
• 63,600 points
473 views
webinar REGISTER FOR FREE WEBINAR X
REGISTER NOW
webinar_success Thank you for registering Join Edureka Meetup community for 100+ Free Webinars each month JOIN MEETUP GROUP