VAQ - ENCRYPTION METHOD (394.72)    FILE (1)

Name Value
NAME VAQ - ENCRYPTION METHOD
DESCRIPTION
This file defines each encryption method currently supported by PDX.
     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
 
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: