Posts

Showing posts from March, 2020

Encryption and Decryption By PHP

<?php Encryption and Decryption By PHP  Stap : 1 Create Library In Codeigniter , Encryption.php Stap : 2 Call Library In Controller $this->load->library('encryption'); $encData ='This is Encryption Library ,Main use for URL Encryption and Decryption'; $enc =  $this->encryption->encryptor('encrypt', $encData); //Call for Encryption $dec =  $this->encryption->encryptor('decrypt', $enc); // Call for Decryption Encryption.php <?php class Encryption {     function encryptor($action, $string) {         $output = false;         $encrypt_method = "AES-256-CBC";         $secret_key = 'test';         $secret_iv = 'test123';         $key = hash('sha256', $secret_key);         $iv = substr(hash('sha256', $secret_iv), 0, 16);         if( $action == 'encrypt' ) {   ...

Auto Complete by Js

CDN <script src="http://ajax.googleapis.com/ajax/libs/jquery/1.7.1/jquery.min.js" type="text/javascript"></script> <link href="http://code.jquery.com/ui/1.10.2/themes/smoothness/jquery-ui.css" rel="Stylesheet"></link> <script src='https://cdn.rawgit.com/pguso/jquery-plugin-circliful/master/js/jquery.circliful.min.js'></script> <script src="http://code.jquery.com/ui/1.10.2/jquery-ui.js" ></script> HTML CODE <div class="form-group">       <label for="country">Country</label>       <input name="country" id="country" class="form-control input-number" onkeydown="getCountriesName()" placeholder="Entry your country name" type="text"> </div> HTML JS CODE function getCountriesName() {         $("#country").autocomplete({             source: function (request...