-->



Monday, October 12, 2015

Codeigniter--Encryption & Decryption of Data

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

       

                                  
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.



No comments:

Post a Comment