I am storing my files on Amazon S3. My problem is that whenever a user asks for a file I want to generate an encryption key (user specific key) and encrypt the file and send it to him.
So basically I want to direct S3 server that I want this file with this key, it generates the url for me, I pass the url to the user and when the user hits this url he/she gets the file encrypted with my key.
I read about the encryption schemes on the S3 docs but couldn't find a way of doing this. All I got is that I can store file with encryption key and to retrieve it back I have to provide the encryption key to S3.
Is there a way of achieving this with S3?