# DES (Data Encryption Standard)

**URL:** <https://www.dynamicsuser.net/t/des-data-encryption-standard/10190>\
**Category:** Developers Forum\
**Created:** [August 17, 2005, 1:07pm UTC](https://www.dynamicsuser.net/t/des-data-encryption-standard/10190 "2005-08-17T13:07:03Z")\
**Posts on this page:** 6\
**Page:** 1

<div class="post-metadata">

**Author:** ![frasti](https://avatars.discourse-cdn.com/v4/letter/f/8edcca/32.png) [@frasti](https://www.dynamicsuser.net/u/frasti)\
**Post date:** [August 17, 2005, 1:07pm UTC](https://www.dynamicsuser.net/t/des-data-encryption-standard/10190/1 "2005-08-17T13:07:03Z")

</div>

Hello everybody! I have to apply the **DES (Data Encryption Standard)** algorithm (exactly the **Triple-DES** algorithm) on some data. Now i’m looking for a piece of navision-code or an executable that i can run by the shell-command to encrypt/decrypt my data with the DES. Is someone experienced with this problem or can sombody help me?

---

<div class="post-metadata">

**Author:** ![robertc](https://avatars.discourse-cdn.com/v4/letter/r/da6949/32.png) [@robertc](https://www.dynamicsuser.net/u/robertc)\
**Post date:** [August 17, 2005, 3:44pm UTC](https://www.dynamicsuser.net/t/des-data-encryption-standard/10190/2 "2005-08-17T15:44:30Z")

</div>

You’d need to write an automation object to wrap the Win32 Crypto API. You also need to manage (i.e. hide and persist) your key for DES, which is generally a huge headache. The Data Protection API (DPAPI) helps with this but there are some constraints with it. I’m afraid I dont know of a components that already does this. If you find one ensure that it is digitally signed because a third party crypto API could do anything but encrypt data safely.

---

<div class="post-metadata">

**Author:** ![fbrande](https://avatars.discourse-cdn.com/v4/letter/f/d78d45/32.png) [@fbrande](https://www.dynamicsuser.net/u/fbrande)\
**Post date:** [August 17, 2005, 7:18pm UTC](https://www.dynamicsuser.net/t/des-data-encryption-standard/10190/3 "2005-08-17T19:18:17Z")

</div>

Microsoft provides a redistributable COM automation wrapper called CAPICOM… [http://msdn.microsoft.com/library/default.asp?url=/library/en-us/seccrypto/security/getting\_ready\_to\_use\_capicom.asp](http://msdn.microsoft.com/library/default.asp?url=/library/en-us/seccrypto/security/getting_ready_to_use_capicom.asp) If you download/extract it and look in the .\samples\vbs folder, you will find a .vbs script that you can run from a command line that will encrypt/decrypt files, and 3DES is one of the encryption options… The command line will look something like this:`CScript.exe CEncrypt.vbs Encrypt -alg 3DES MyTextFile.txt MyCryptText.txt MySuperSecretPassword`

---

<div class="post-metadata">

**Author:** ![frasti](https://avatars.discourse-cdn.com/v4/letter/f/8edcca/32.png) [@frasti](https://www.dynamicsuser.net/u/frasti)\
**Post date:** [August 19, 2005, 7:21am UTC](https://www.dynamicsuser.net/t/des-data-encryption-standard/10190/4 "2005-08-19T07:21:41Z")

</div>

thx for your answers. i wrote a little executable in c# where i use the TripleDESCryptoServiceProvider to encrypt/decrypt my data…

---

<div class="post-metadata">

**Author:** ![gsahoonet](https://avatars.discourse-cdn.com/v4/letter/g/a5b964/32.png) [@gsahoonet](https://www.dynamicsuser.net/u/gsahoonet)\
**Post date:** [July 29, 2010, 12:49pm UTC](https://www.dynamicsuser.net/t/des-data-encryption-standard/10190/5 "2010-07-29T12:49:38Z")

</div>

Hi,

Is that encrypt the Nav codes?

Please let me know because i am struggliing with this.

Thanks.

---

<div class="post-metadata">

**Author:** ![DigiTecKid](https://sea1.discourse-cdn.com/flex023/user_avatar/www.dynamicsuser.net/digiteckid/32/7509_2.png) [@DigiTecKid](https://www.dynamicsuser.net/u/DigiTecKid)\
**Post date:** [August 6, 2010, 5:44pm UTC](https://www.dynamicsuser.net/t/des-data-encryption-standard/10190/6 "2010-08-06T17:44:03Z")

</div>

Hello HaHa, sorry for the late response. Kirtan has what you are looking for…

[http://mibuso.com/blogs/kirtangor/2010/03/23/implementing-encryption-in-microsoft-dynamics-nav/](http://mibuso.com/blogs/kirtangor/2010/03/23/implementing-encryption-in-microsoft-dynamics-nav/)
