Page 1 of 1

Help Needed Urgently....Regular Expression Encryption in PHP

Posted: Tue Jul 26, 2005 2:07 am
by parag
Hello Everybody,

I am working on Project which is having requirement of Encryption(because it will contain some confendential information i.e. database server's username and password and also some important information of file which should be PHP Compactible i.e. PHP compliler should understand the file and should execute it so that when user sees the code but should not understand the code Also when it is executed i.e. given request in the browser it should execute that file.

I have also tried for some encryption softwares to encrypt file it encrypts file but it will require some folder also at remote m/c. or server to decrypt the file. So it is not flexible to give user entire folder. It is also not safe from security point of view.

I have come across the file which is having some regular expression used for encryption but when it is executed i.e. given request in the browser. It executes the file.

Regards,

Parag Bhavsar

Posted: Tue Jul 26, 2005 3:51 am
by Chris Corbyn
I'm a bit confused what you are hoping to encrypt using a regular expression. Regex may prehaps scrable the code but it's ceratinly not encryption. If you're going to use anything like that then you will need another script with the regular expression "descrambler". In which case, if someone got acess to your server they would be able to obtain these files anyway.

The end user will never (if you don't give them it and PHP is correctly configured) see the source code in the PHP files so they won't be able to get passwords etc...

Could you try to explain a little better please? If you're looking to compile/encrypt your scripts try something like Zend or IonCube...