Files > VAQ - ENCRYPTION METHOD

name
VAQ - ENCRYPTION METHOD
number
394.72
location
^VAT(394.72,
description
This file defines each encryption method currently supported by PDX. Methods must use the following parameters: STRING - String to encrypt/decrypt KEY1 - Name of primary encryption/decryption key KEY2 - Name of secondary encryption/decryption key (if required) Methods must return the following: string - Encrypted or decrypted form of STRING NULL - Error Sample methods: $$ECR^VAQZZZ(STRING,KEY1,KEY2) - Encrypts STRING using the encryption keys KEY1 & KEY2 $$DCR^VAQZZZ(STRING,KEY1,KEY2) - Decrypts STRING using the decryption keys KEY1 & KEY2 Sample use: S IFN=internal file number for encryption method S STRING="TEST" S KEY1="ABCD1234" S KEY2="ZYXW0987" X ("S X="_^VAT(394.72,IFN,"ECR")) The variable X is now set to the encrypted format of STRING
Fields
#NameLocationTypeDetailsIndexDescription
.01encryption type(+)0;1FREE TEXTB Type of encryption (name).
10encryption methodECR;E1,240FREE TEXTFunction call to encrypt a line of data.
20decryption methodDCR;E1,240FREE TEXTFunction call to decrypt a line of data.

Referenced by 2 types

  1. VAQ - TRANSACTION (394.61) -- encryption method
  2. VAQ - PARAMETER (394.81) -- encryption method