How to encrypt customer table data in Dynamics NAV or SQL Server?

samantharodg
Member Posts: 5
I want to encrypt customer table data in Dynamics NAV or SQL Server? Personal info such as email, phone, SSN, credit card info is sensitive and can be stolen from DB, so looking for a solution to encrypt it. Strong encryption such as AES 256 will be better. I will appreciate if someone can make suggestions, we want to avoid or keep minimum code changes.
0
Answers
-
Sql server has "Transparent database encryption". No codechanges at all. Problem: it is an Enterprise Edition feature.
NAV 2017 has ENCRYPT and DECRYPT but codechanges are necessary.Regards,Alain Krikilion
No PM,please use the forum. || May the <SOLVED>-attribute be in your title!0 -
Here are the steps to Encrypt Sensitive Data using Always Encrypted & Dynamics NAV 2016
Step 1 - Running Always Encrypted Wizard:
SQL Server 2016 comes with an inbuilt tool of encryption that takes care of the full encryption mechanism within it. What you need to do is just go to the field that needs to be encrypted in SQL Server and run the wizard from there
Step 2 -Integrating Dynamics NAV 2016 with Always Encrypted:
Once the data is encrypted, it can be retrieved from a set of SQL queries if the Service user have the access to Column Master Key, which is an encrypted key generated by Always Encrypted Wizard and can be stored at Various Locations provided by Microsoft.
Step 3 - How to Ensure the Always Encrypted Data Security:
The Keys generated in Step 2 has an option to be stored at Widows Certificate Store, Azure Key Vaults and other Cryptographic Key Management Tools.
Step 4 - Always Encrypted Data Retrieval (Insert / Update operations):
To insert the data in always encrypted column, direct insert query will fail in this scenario, but this can be done using Dot Net assemblies by using a correct Connection String.
Step 5 -Deploying the Always Encrypted fields in Dynamics NAV or Customer Website:
Once the data is encrypted it can be seen in a Binary stored format at the SQL Server by using a simple Select Query, for publishing the data by decrypting, Dot Net assemblies needs to be employed both in Navision CAL code or Website Dot Net Code. Currently Always Encrypted is supported with Dot Net assemblies only.
You can also check this video on How to Encrypt or Decrypt data with Encrypted SQL 2016 feature0
Categories
- All Categories
- 73 General
- 73 Announcements
- 66.6K Microsoft Dynamics NAV
- 18.7K NAV Three Tier
- 38.4K NAV/Navision Classic Client
- 3.6K Navision Attain
- 2.4K Navision Financials
- 116 Navision DOS
- 851 Navision e-Commerce
- 1K NAV Tips & Tricks
- 772 NAV Dutch speaking only
- 617 NAV Courses, Exams & Certification
- 2K Microsoft Dynamics-Other
- 1.5K Dynamics AX
- 320 Dynamics CRM
- 111 Dynamics GP
- 10 Dynamics SL
- 1.5K Other
- 990 SQL General
- 383 SQL Performance
- 34 SQL Tips & Tricks
- 35 Design Patterns (General & Best Practices)
- 1 Architectural Patterns
- 10 Design Patterns
- 5 Implementation Patterns
- 53 3rd Party Products, Services & Events
- 1.6K General
- 1.1K General Chat
- 1.6K Website
- 83 Testing
- 1.2K Download section
- 23 How Tos section
- 252 Feedback
- 12 NAV TechDays 2013 Sessions
- 13 NAV TechDays 2012 Sessions