Tuesday, April 1, 2014

Re: Encrypting Uploads

I have to agree with Ali, for what reason do you need to encrypt files? If it is so they cannot be accessed by guests or people without authentication like Ali mentioned, proper web server setup and delivering files via the application will be much more effective and less intensive.


On 1 April 2014 19:44, Ali Wasif <aliwasif2009@gmail.com> wrote:
You can do that, but I think a better approach would be to authenticate users, set access levels, so that they can view the file. If you are using Amazons S3, you can use their Authentication method. This way the file is not publicly available and can only be viewed by the owner / allowed user.

- Mir



On Sat, Mar 29, 2014 at 3:05 PM, Ali Haris <aharis11@gmail.com> wrote:
I am working on an application which requires the uploaded files to be encrypted. The file should be decrypted while viewing inside the application.

How do I achieve this with CakePHP? I know there are some security and encryption functions available in CakePHP. However I have no prior experience in encrypting files. Therefore my question may sound a bit stupid.

Any how, Do I have to read the contents of the files and encrypt it using the encryption methods available in CakePHP and write the encrypted contents to the file and store it in the sever?

Any practical methods and suggestions are appreciated.

--
Like Us on FaceBook https://www.facebook.com/CakePHP
Find us on Twitter http://twitter.com/CakePHP

---
You received this message because you are subscribed to the Google Groups "CakePHP" group.
To unsubscribe from this group and stop receiving emails from it, send an email to cake-php+unsubscribe@googlegroups.com.
To post to this group, send email to cake-php@googlegroups.com.
Visit this group at http://groups.google.com/group/cake-php.
For more options, visit https://groups.google.com/d/optout.

--
Like Us on FaceBook https://www.facebook.com/CakePHP
Find us on Twitter http://twitter.com/CakePHP

---
You received this message because you are subscribed to the Google Groups "CakePHP" group.
To unsubscribe from this group and stop receiving emails from it, send an email to cake-php+unsubscribe@googlegroups.com.
To post to this group, send email to cake-php@googlegroups.com.
Visit this group at http://groups.google.com/group/cake-php.
For more options, visit https://groups.google.com/d/optout.



--
Kind Regards
 Stephen Speakman

--
Like Us on FaceBook https://www.facebook.com/CakePHP
Find us on Twitter http://twitter.com/CakePHP

---
You received this message because you are subscribed to the Google Groups "CakePHP" group.
To unsubscribe from this group and stop receiving emails from it, send an email to cake-php+unsubscribe@googlegroups.com.
To post to this group, send email to cake-php@googlegroups.com.
Visit this group at http://groups.google.com/group/cake-php.
For more options, visit https://groups.google.com/d/optout.

No comments: