5hadi's avatar
Level 1

Server side encryption vs Client side encryption

hello , i have project where i have to upload a file to the server , i also need to encrypt the contents of the file , should i encrypt it using php or javascript before it gets uploaded ?

0 likes
2 replies
ejdelmonico's avatar

If you do it client side then all of your users better have a very recent mobile and desktop or play some elevator music or write a great deal of optimized code. I would opt to encrypt server side and rely on the basic protections of SSL to get it there. You can scan over this https://laravel.com/docs/5.5/encryption

Please or to participate in this conversation.