PHP Classes

Ghost Crypt

Recommend this page to a friend!

      PHP Ghost Crypt  >  All threads  >  Ghost Crypt  >  (Un) Subscribe thread alerts  
Subject:Ghost Crypt
Summary:de-crypt
Messages:3
Author:GP Das
Date:2015-11-17 07:10:10
 

  1. Ghost Crypt   Reply   Report abuse  
Picture of GP Das GP Das - 2015-11-17 07:10:10
How can I get back the original file say file.php from file.enc.php?

  2. Re: Ghost Crypt   Reply   Report abuse  
Picture of Dave Smith 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?

  3. Re: Ghost Crypt   Reply   Report abuse  
Picture of jose carlos jose carlos - 2015-11-18 22:48:52 - In reply to message 2 from Dave Smith
Yes, Perfect!!