anknegi Posted January 21, 2016 Share Posted January 21, 2016 how to write a php script to browse a file and then encrypt it using aes and then upload it to any cloud like aws s3? Quote Link to comment Share on other sites More sharing options...
Jacques1 Posted January 21, 2016 Share Posted January 21, 2016 (edited) If you want help, you'll have to be a lot more specific and show some effort. Nobody is going to write a step-by-step guide just for you. So what exactly is your problem? What have you tried? AES in PHP is generally a bad choice. When you encrypt files, you should use authenticated encryption which provides both secrecy and integrity (plain encryption still allows an attacker to manipulate your files). AES has the “GCM” mode for that, but it's virtually nonexistent in PHP. A better choice would be ChaCha20-Poly1305 via the libsodium extension. Edited January 21, 2016 by Jacques1 Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.