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 6668147
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 26, 20262026-05-26T03:00:32+00:00 2026-05-26T03:00:32+00:00

I need to encrypt content in my web application on a per-user basis. I,

  • 0

I need to encrypt content in my web application on a per-user basis.

I, the root user, do not want to have access to users’ content, period.

How can I make it so users are the only ones with access to their content? Perhaps I can make it so a hash of their login password acts as an encryption and decryption key (then their password is stored one-way hashed in my database, and the encryption/decryption hash is generated from their raw password on login and stored in a local cookie)? But what if they change their password? Then I have to update all their content which could take a lot of processing power.

Is there an encryption method that would provide this, without having to re-encrypt their content if their password changes? Something similar to ecryptfs on Linux, perhaps? Is researching ecryptfs a good place to start?

Is making it so only the user can access their content on my servers (and not even me) even feasible?

  • 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-05-26T03:00:33+00:00Added an answer on May 26, 2026 at 3:00 am

    Process:

    1. Generate a random secret to encrypt their content.
    2. Using their provided password encrypt the random secret from #1.
    3. Store their password as a one-way hash (with salt, maybe multi-hash).

    Upon Password change:

    1. Re-generate the value from step #2.
    2. Re-generate the hash-cache from step #3.

    Upon Login:

    1. Hash password and check against hash generated in step #3.
    2. If password matches – use actual provided password to decrypt random secret from #2.
    3. Use random secret from #2 to unlock data encrypted in #1.

    Notes:

    • No one can decode the data without knowing the random secret (#1). Random secret can only be unlocked with user’s actual password (#2) (short of brute-force). User’s actual password is only known in one-way hashed form (#3) so you can confirm it’s the same, but cannot decode it and recover #2.
    • A forgotten password process is not possible (you can regenerate #3, but random key in #2 is now lost as is everything locked in their vault).
    • You don’t have to re-encrypt everything in step #1 every time they change their password, only the (simple/quick) random secret from #2.
    • If you cache their provided password, or the random secret generated at step 1, or their (decrypted) content anywhere you could cause data leaks.
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have given a task in which I need to encrypt an user's ID
I need to encrypt / decrypt passwords for a new application. The spec requires
I need to encrypt a string using an RSA 1.5 algorithm. I have been
Hi I have a webapp - and in one method I need to encrypt
I need to encrypt my web.config file on my dev machine (Windows XP SP-3)
I need to encrypt and decrypt a querystring in ASP.NET. The querystring might look
I need to encrypt a small block of data (16 bytes) using 512 bit
I need to encrypt a lot of large JPEG files. The pictures are very
The situation I'm trying to solve: in my Cocoa app, I need to encrypt
We need to PGP encrypt files and send them over FTP to a third

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.