How do I encrypt csv file generated from NAV database through C/AL coding
dipanwita_c
Member Posts: 11
I am using one report (can switch to XMLPort if needed) to export the data in csv format. The exported data should be in encrypted format which can not be read / edited by people. The data exporting is bank details which has to be decrypted while uploading to the Bank web.
NAV version : 2013
SQL version : 2012
NAV version : 2013
SQL version : 2012
0
Best Answer
-
You can use PowerShell for this:
https://gallery.technet.microsoft.com/scriptcenter/PowerShell-Encryption-45709b87
To verify the integrity of the file:
https://gallery.technet.microsoft.com/PowerShell-File-Checksum-e57dcd67Kai Kowalewski5
Answers
-
You can use PowerShell for this:
https://gallery.technet.microsoft.com/scriptcenter/PowerShell-Encryption-45709b87
To verify the integrity of the file:
https://gallery.technet.microsoft.com/PowerShell-File-Checksum-e57dcd67Kai Kowalewski5 -
Hi Kowa, thanks for your suggestion... I will try this out at my end with the file and update if this works for the integration or not0
-
Hi Kowa, I tried using the examples, but it seems cannot use as I am not having any RSA certificate with private key in my machine. I could encrypt my file using Navision encryption system though. However, I am not able to decrypt the file. Any idea on the working on Navision encryption in 2013 ?0
-
Example script No. 2 uses AES Encryption. Works fine for me, without a RSA key.Kai Kowalewski0
-
Hi Kowa, actually example 4 is nearer to my requirement... it requires RSA key... the bank specifications are as follows:
1) Type : RSA
2) Size : 4096/4096 or 2048/2048
3) Expiry Date : Required (Recommended life 3 years)
4) Ciphers Allowed : AES , AES256 (Preferred: AES)
5) Mode : ASCII mode or Binary mode0 -
RSA Keys can be generated with OpenSSL:
https://www.openssl.org/
To install it on a Windows OS you can use this tool:
http://slproweb.com/products/Win32OpenSSL.htmlKai Kowalewski0
Categories
- All Categories
- 73 General
- 73 Announcements
- 66.7K Microsoft Dynamics NAV
- 18.8K 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
- 328 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
