How to secure(encrypt) the uplaoded files

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
eshban
Forum Contributor
Posts: 184
Joined: Mon Sep 05, 2005 1:38 am

How to secure(encrypt) the uplaoded files

Post by eshban »

Hello,

I need some help.

I have a website on which user comes and upload to the server.

Now i want Some security feature to implement, means when user uploads the file on server and if select option "Secure-Storage", then file will be uploaded in encrypted format. SO if any hacker got access of my hosting he will be unable to view / read the files.

Can anyone tell me some good, strong and easily mechanism that how can i implement it.

Thanks
filippo.toso
Forum Commoner
Posts: 30
Joined: Thu Aug 07, 2008 7:18 am
Location: Italy
Contact:

Re: How to secure(encrypt) the uplaoded files

Post by filippo.toso »

The upload process can be executed in "encrypted format" only if the script is accessed through SSL or the users uploads the file already encrypted.

If you need to encrypt the files after they have been uploaded on the server, you should take a look to http://www.php.net/manual/en/filters.encryption.php
Post Reply