How to use DES encryption on Caché 2016.2

Caché

I have a requirement to use DES encryption, but looking at the document found no support. I want to know how to solve it.

  • 0
  • 0
  • 92
  • 0
  • 2

Answers

Please do not use DES as it's currently a broken cypher with bruteforce time of about a day.

Take a look at methods in the %SYSTEM.Encryption class.

Like many of the classes in the %SYSTEM package, you can easily access its methods via $SYSTEM, e.g.

USER>d $system.Encryption.Help()
'Do $system.Encryption.Help(method)' will display a full description of an individual method.
 
Methods of the class: %SYSTEM.Encryption
 
AESCBCDecrypt(ciphertext,key,IV)
     This method performs AES decryption in Cipher Block Chained (CBC) mode.

...