mirror of
https://github.com/Microsoft/sql-server-samples.git
synced 2025-12-08 14:58:54 +00:00
updated Always Encrypted section
This commit is contained in:
@@ -76,15 +76,22 @@ TODO: Show img
|
||||
- For more information on using SSMS to connect to an Azure Database, [click here](https://azure.microsoft.com/en-us/documentation/articles/sql-database-connect-query-ssms/)
|
||||
+ Encrypt Sensitive Data Columns using the Column Encryption Wizard
|
||||
- Right click on the **Patients** table in the **Clinic** database and select **Encrypt Columns...**
|
||||

|
||||
- The Column Encryption wizard will open. Click **Next**.
|
||||

|
||||
- Select the **SSN** and **BirthDate** columns.
|
||||
* Select **Deterministic Encryption** for **SSN** as the application needs to be able to search patients by SSN; Deterministic Encryption preserves that functionality for our app without leaving data exposed.
|
||||
* Select **Randomized Encryption** for *BirthDate**
|
||||

|
||||
- Leave **CEK_Auto1 (New)** as the Key for both columns. Click **Next**.
|
||||
- On the **Master Key Configuration** page, the Master Key Source should default to to **Windows Certificate Store**, with the **Master Key Source** defaulted to **Current User**. ( This will store the key on your local machine. )
|
||||
- On the **Master Key Configuration** page, the Master Key Source should default to to **Windows Certificate Store**, with the **Master Key Source** defaulted to **Current User**. (This will store the key on your local machine.)
|
||||

|
||||
- Click the **Next** button on the Validation page.
|
||||
- The Summary Page provides an overview of the settings we selected. Click **Finish**.
|
||||
- Monitor the progress of the wizard; once finished, click **Close**.
|
||||

|
||||
- The Summary Page provides an overview of the settings we selected. Click **Finish**.
|
||||

|
||||
- Monitor the progress of the wizard; once finished, click **Close**.
|
||||

|
||||
+ View the data in SSMS (in SSMS use: `SELECT SSN, BirthDate FROM dbo.Patients` or `SELECT * FROM dbo.Patients` )
|
||||
- Note that the data is now encrypted on the server for both the **SSN** and **BirthDate** columns.
|
||||
+ Navigate to or refresh the /patients page
|
||||
|
||||
Reference in New Issue
Block a user