Page 1 of 1

Encrypt File

Posted: Thu Oct 18, 2007 12:34 am
by sarbas
Hi,


I want to encrypt one file using php.Is it possible in php.can u explain how?

Thanks with Regards
Sarbas

Posted: Thu Oct 18, 2007 5:59 am
by arjan.top
use mcrypt extension

Posted: Thu Oct 18, 2007 8:10 am
by s.dot
Do you want to still be able to use the file -- like obfuscate source code? You should look into php obfuscators for that.

The mcrypt extension works nicely if you can enable it.
http://us2.php.net/mcrypt

If you just want the page to look like a bunch of garbage data, i suppose you could go with base64_encode(), and base64_decode() to get it back into original text.

Posted: Thu Oct 18, 2007 9:26 am
by thewebdrivers
scottayy wrote:Do you want to still be able to use the file -- like obfuscate source code? You should look into php obfuscators for that.

The mcrypt extension works nicely if you can enable it.
http://us2.php.net/mcrypt

If you just want the page to look like a bunch of garbage data, i suppose you could go with base64_encode(), and base64_decode() to get it back into original text.
agree...