Good afternoon!

I need to encrypt the url address so that only php can understand it, and the person could not decrypt, only with a key, I have CodeIgniter at hand

$ch = curl_init("http://music.art/api/key"); 

Here that URL in a method needs to be ciphered, is there such a possibility?

  • one
    In the sense of making the option unreadable? Well, encrypt it with some rsa and encode it in base64. aa, I understand it seems, you want to hide it in the source, obfuscators to help, all sorts of ioncube etc. - zb '10
  • After obfuscators, my script integrity is broken, and a lot of things do not work. - chuikoff
  • Well, what is the purpose of hiding the line? Can this question be solved in a different way? (well, do not encrypt the whole project, but let's say a model or a libu that calls this curl with this line), in any case, you can always intercept the string with a sniffer, if https of course you have to suffer a little, libcurl / libssl is replaced there and so on ... but simply enough - zb '

0