Hi all
Am about to make a feature which I (despite my many years with NAV) have not tried before.
Want to encrypt all fields on the fly when entering data in a special table and with a form being able to read decrypted information.
Have no idea where to begin - how to do?
It has to be done in a NAV 2009 Classic, but when talking table there is presumeably no difference.
Thanks in advance.
0
Answers
Just bear in mind that the field will no longer be searcheable. Users will not be able use any filters, and the code will only be able to use search for exact value - if you add the encryption in all the places where system does SETRANE on the field. Range filters, prev/next values - all of this will become impossible,
Dynamics NAV, MS SQL Server, Wherescape RED;
PRINCE2 Practitioner - License GR657010572SG
GDPR Certified Data Protection Officer - PECB License DPCDPO1025070-2018-03
Was indeed aware of where to place the en-/decrypt and also which features will be missing.
It is the encryption/decryption itself I am looking for - what to use and how. Have never had to use this before.
You would probably need to find a 3rd party dll which does the encryption/decryption - if you are after 'a proper' encryption. The catch here is that NAV is quite limited when it comes to the data it can exchange with external dlls
Dynamics NAV, MS SQL Server, Wherescape RED;
PRINCE2 Practitioner - License GR657010572SG
GDPR Certified Data Protection Officer - PECB License DPCDPO1025070-2018-03
Depending on what kind of intrusion you're expecting this might not be enough, but the internet is full of better encryption mechanisms.
If you have to encrypt other fields like date or time, all you can do is calculate different dates and times so the ones visible when looking into the table are readable but incorrect. Same for option fields, which are internally just an integer.
It might be better to use are temporary table in the form the decrypted records are displayed in. Otherwise you might cause a lot of load and possibly table locks, especially if you encrypt key fields.
Will follow your idea. It is not for possible intrusions, only for some sensible info's not to be readable for all eyes.