File manager - Edit - /home/asiatechinc/public_html/asiatechinc-websites/dhyeyaprakashan.com/payment.php
Back
<?php //php 7.0.8 function select(){ echo "The select function is called."; } /*function encrypt($inputVal,$secureKey) { $encrypted_text =''; try { if ($inputVal == null ||$inputVal == '' ) { return "Input Value is Empty"; } else if ($secureKey == null ||$secureKey == '') { return "Key Value is Empty"; } else { $secureKey = hex2bin($secureKey); } $encrypted_text = bin2hex(openssl_encrypt($inputVal, 'AES-128-ECB', $secureKey, OPENSSL_RAW_DATA)); } catch (Exception $e) { return "Error :".$e->getMessage(); } catch (InvalidArgumentException $e) { return "Error :".$e->getMessage(); } return $encrypted_text; } function decrypt($inputVal,$secureKey) { $decrypted_text =''; try { if ($inputVal == null ||$inputVal == '' ) { return "Input Value is Empty"; } else if ($secureKey == null ||$secureKey == '') { return "Key Value is Empty"; } else { $inputVal = hex2bin($inputVal); $secureKey = hex2bin($secureKey); } $decrypted_text = openssl_decrypt($inputVal, 'AES-128-ECB', $secureKey, OPENSSL_RAW_DATA); } catch (Exception $e) { return "Error :".$e->getMessage(); } catch (InvalidArgumentException $e) { return "Error :".$e->getMessage(); } return $decrypted_text; } $secureKey = "989abcd43f85c9e68f25fc29d0db62e7"; $plainInput = "HDFC000020190561|19020961|dhyeyap84@hdfcbank|19020961|TEST|10|6012|||||||||NA|NA"; $encrypted = encrypt($plainInput, $secureKey); echo "Encrypted : ".$encrypted; $decrypted = decrypt($encrypted, $secureKey); echo "\n Decrypted : ".$decrypted;*/ ?>
| ver. 1.4 |
Github
|
.
| PHP 7.4.33 | Generation time: 0.02 |
proxy
|
phpinfo
|
Settings