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 in PHP by Kithuzzz
• 320 points
3 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.

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,720 points
12,537 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,720 points
1,008 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,720 points
5,250 views
0 votes
1 answer

What is meant by passing the variable by value and reference in PHP?

Hello, When the variable is passed as value ...READ MORE

answered Mar 27, 2020 in PHP by Niroj
• 82,720 points
1,379 views
0 votes
1 answer

What is the use of $_REQUEST variable in php?

Hii @kartik, The $_REQUEST variable is used to read the ...READ MORE

answered Mar 27, 2020 in PHP by Niroj
• 82,720 points
740 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 in PHP by Aditya
• 7,280 points
52 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 in PHP by narikkadan
• 10,640 points
8 views
webinar REGISTER FOR FREE WEBINAR X
Send OTP
REGISTER NOW
webinar_success Thank you for registering Join Edureka Meetup community for 100+ Free Webinars each month JOIN MEETUP GROUP