thickGlass
thickGlass

Reputation: 580

Encrypt file with 256 bit AES key from s3cmd tool

I've got a bucket with some amount of unencrypted files, I need to encrypt them with 256 bit AES key. I've already written a java code to encrypt those files and it is working fine. What I am wondering is if the s3cmd tool provided also supports the encryption process, if it did it would save me a lot of time. I've already generated a AES key if I could somehow use the s3cmd put command to recursively encrypt all the files it would be a great help. Anyone pleas.... :)

Upvotes: 0

Views: 722

Answers (1)

slipperyseal
slipperyseal

Reputation: 2778

You could simply use server side encryption where S3 will encrypt the data for you as it stores it. It will do the decryption also on retrieval. All you need to do is supply the key.

http://docs.aws.amazon.com/AmazonS3/latest/dev/serv-side-encryption.html

This says it's available in s3cmd from 1.5.0-beta1 - the current version is 1.5.2 so it should be there but i can't find any examples on the net.

http://s3tools.org/kb/item9.htm

Upvotes: 0

Related Questions