Encrypt File

PHP programming forum. Ask questions or help people concerning PHP code. Don't understand a function? Need help implementing a class? Don't understand a class? Here is where to ask. Remember to do your homework!

Moderator: General Moderators

Post Reply
sarbas
Forum Commoner
Posts: 64
Joined: Thu Jan 04, 2007 5:51 am

Encrypt File

Post by sarbas »

Hi,


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

Thanks with Regards
Sarbas
User avatar
arjan.top
Forum Contributor
Posts: 305
Joined: Sun Oct 14, 2007 4:36 am
Location: Hoče, Slovenia

Post by arjan.top »

use mcrypt extension
User avatar
s.dot
Tranquility In Moderation
Posts: 5001
Joined: Sun Feb 06, 2005 7:18 pm
Location: Indiana

Post 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.
Set Search Time - A google chrome extension. When you search only results from the past year (or set time period) are displayed. Helps tremendously when using new technologies to avoid outdated results.
thewebdrivers
Forum Commoner
Posts: 41
Joined: Fri Aug 17, 2007 3:32 pm
Location: india
Contact:

Post 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...
Post Reply