I have developed one application in PHP which uses encryption and decryption.
I have used mcrypt_encrypt and mcrypt_decrypt functions.
But i want to hide my encryption key somehow. so that other network users could not see it.
How can i do that ?
I try to save my key in an individual file and than make exe of that file. but when i execute it on my php page than it returns blank.
I tried -> exec('key.exe',$key); print_r($key);
can anyone help me that how can i hide my encryption key ?
is there any other way ?
,
Mausami
I got it working with
exec()command.We cant use
file_get_contents('key.exe')because it cant give the original content.I got the solution with this code
Thanks Alex Lunix, Marc B, CodeslnChaos, Daryl Gill, jogesh_p and prdatur for your help.