After Dynamic Calender, We will be learning about encryption and Decryption in Data.
1. Rename your Codeigniter folder as "EncIgniter".
2. Now configure your files.Go to C:\xampp\htdocs\EncIgniter\application\config.
Now select autoload.php and make changes as follows.$autoload['libraries'] = array('xmlrpc');
$autoload['helper'] = array('url', 'file','form');
3. Select config.php and make the changes as follows.
$config['base_url'] = 'http://localhost/EncIgniter/';
4. Select routes.php and make the changes as follows.
$route['default_controller'] = "encrypt_ctrl";
$route['404_override'] = '';
5. Create a new folder named "css" in C:\xampp\htdocs\EncIgniter.
6. Now create a new file encrypt_ctrl.php in C:\xampp\htdocs\EncIgniter\application\controllers.Copy and paste the code given below.
encrypt_ctrl.php
7. Create another file encrypt_view.php in C:\xampp\htdocs\EncIgniter\application\views.Copy and paste the code given below.
encrypt_view.php
";
echo form_open('encrypt_ctrl/key_decoder');
echo form_label('Decode Encrypted Message');
$data = array('name' => 'encrypt_key','value' => $encrypt_value);
echo form_input($data);
echo form_submit('submit','Decode');
echo form_close();
echo "
";
}
?>
8. Create a new file style.css and save it in C:\xampp\htdocs\EncIgniter\css. Copy and paste the code given below.
style.css
9. Finally navigate your url to http://localhost/EncIgniter/. You should get the following screen.
10. That's it!! we successfully developed an encryption and decryption-data application. In our next tutorial we will be learning about Image Uploading.
style.css
9. Finally navigate your url to http://localhost/EncIgniter/. You should get the following screen.
10. That's it!! we successfully developed an encryption and decryption-data application. In our next tutorial we will be learning about Image Uploading.
No comments:
Post a Comment