Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 8571691
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 11, 20262026-06-11T18:50:13+00:00 2026-06-11T18:50:13+00:00

I am working on a project to manage build artifacts and corresponding metadata in

  • 0

I am working on a project to manage build artifacts and corresponding metadata in S3 & SimpleDB respectively.

I’d like feedback on different strategies for encrypting build artifacts which are uploaded to an S3 bucket.

Symmetrically encrypt file before storing.

  • Read a secret from a file.
  • Directly AES256 encrypt the file to be stored in S3 with this secret as the key.
  • Upload encrypted file to S3.
  • Decryption will be done by downloading file from S3 and decrypting with same key.

Encrypt file with random string. Symmetrically encrypt and store string with file.

  • Read a secret from a file.
  • Generate a random string.Encrypt the file with the random string.
  • Encrypt the random string.
  • Store encrypted random string in SimpleDB.
    Decryption will be performed by downloading the object from S3, as well as the string from SimpleDB. Decrypting the encrypted string with the secret and using the unencrypted string to decrypt the file.

I am leaning towards the later as it offers the ability to rotate the encrption key by re-encrypting the string stored in SimpleDB with a new secret.

Anyone tackled this problem who can comment on the strengths and weaknesses of each strategy?

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-11T18:50:15+00:00Added an answer on June 11, 2026 at 6:50 pm

    From a cryptographic point of view both schemes provide similar security.
    The main difference is the organizational characteristic.
    The second scheme gives you the ability to make all encrypted files unreadable by simply deleting the SimpleDB.
    Additionally you can change the password to decrypt the file-keys, just as you said.
    This is pretty much how decryption keys are stored on LUKS partitions.
    So I would also tend to the second version.

    I you want different people to have access to the files, I would consider using a hybrid scheme, i.e., storing the file-keys encrypted with a public-key system.

    Btw. which mode did you chose for the encryptions?

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I'm working on building a database to manage project assignments, and the one part
I'm using Eclipse along with plugin m2eclipse to build and manage my project. In
I'm working to the following little project: https://github.com/AndreaCrotti/project-organizer Which in short aims to manage
I have a really simple build script that looks like this: <Project xmlns=http://schemas.microsoft.com/developer/msbuild/2003 ToolsVersion=4.0
I'm working on a Biztalk 2009 proof of concept project and would like to
I am currently working on a project where I need to access a build
I'm currently working on project, Android Internet Download Manager. In order to download the
I have a working project that Im amending, it crashes after trying to use
I'm curious if it is possible to move the written and fully working project
While working a project tonight, I ended up using one .js resource file for

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.