Dave Smith - 2015-11-17 10:12:20 -
In reply to message 1 from GP Das
The encrypted file, file.enc.php in this case, is a self decrypting file. The idea is to make it difficult to get back to the original source while still being able to run the script.
Suppose we change the naming conventions used in the example around a bit so that it might make more sense.
You have a file which contains the original non-encrypted source code named... file.source.php. This is the file you will read to output to an encrypted version named... file.php.
The file.php file is what you use publicly since it has the secrets encrypted. Anyone who runs file.php should get the same results as if they ran file.source.php.
The idea is not to get back to the original file, it is to produce the same result as the original file using an encrypted version.
Does that make sense?