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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 1, 20262026-06-01T15:14:37+00:00 2026-06-01T15:14:37+00:00

I am going to use AES_ENCRYPT() and AES_DECRYPT to store patient data in an

  • 0

I am going to use AES_ENCRYPT() and AES_DECRYPT to store patient data in an EMR System, and I was wondering how to store the key. I need to be able to allow authorized users access to that key in order to decrypt and read the data that is stored in the patient’s record. How can I easily share a key with many users, but keep that key secure. Any thoughts or examples are appreciated.

  • 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-01T15:14:39+00:00Added an answer on June 1, 2026 at 3:14 pm

    The standard way to do this is to create a “system” key for each patient, and use that key to encrypt that patient’s data. Do not share that key with the patient, or with any of the users.

    When a user enrolls in the system, use the password to create a “user” key for that user. (For example, take the SHA-256 hash of the user’s password.) Do not store the user’s password on the system.

    Then, when the user is authorized to access a patient’s data, encrypt that patient’s system key with the authorized user’s key and save the encrypted key in the user’s account. If the user is authorized to access additional patients’ records, repeat this process for each patient’s system key.

    Finally, when an authorized user wants to access the patient’s data, s/he enters his or her own password, which is used to decrypt the patient’s system key, which in turn is used to decrypt the patient’s data.

    When a user wants to change his/her password, you must decrypt each of the system keys that are associated with that account, and then re-encrypt them using the new password.


    Disclaimer: Security is Hard* and I am not a cryptographer. In addition, the law may require that patient data be encrypted and otherwise protected according to certain standards. Before you implement any security system, consult an expert, and never under any circumstances create your own security scheme, especially where financial, medical, or other critical information is concerned.

    *Bruce Schneier, Chief Security Technology Officer, BT

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

Sidebar

Related Questions

I'm attempting to use symmetric encryption to encrypt some data, and store the key
I am going to use forms authentication but I want to be able to
I'm going to use SQLite in order to save a lot of data in
I'm going to use C# to read data from a few webservices. I've done
I was going to use NSUserDefaults *defaults = [NSUserDefaults standardUserDefaults]; // to store [defaults
If i'm going to use a XML file to store some information, Am I
I was going to use varchar(20) , but I was wondering what should if
I'm going to use a single table to aggregate historical data about our (very
im going to use ajax/comet to create a chat. and i want to store
I'm going to use System.DirectoryServices to programatically add a wildcard filter for IIS (Version

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.