User Data Encryption

VPM Enterprise encrypts the data you enter on the Users form and stores it in the Users table SDATAUsers.

The code that handles the encryption and decryption of User data is located in the Users class in the VPMSEC.VCX class library and the VPMDataHandler class in the VPMDATAHANDLER.VCX class library.

Encryption: As you enter data on the Users form, the Valid event of each field control calls the EncryptString method of the form’s data handler object (ThisForm.oVPMDataHandler) and encrypts the field for storage in the Users record. The EncryptString method takes the string passed to it and returns a string of the same length encrypted with the VPME encryption algorithm. You can use the EncryptString method in your code.

Decryption: When a User record is displayed on the Users form, the RefreshForm method of the Users form calls the DecryptString method of the form’s data handler object (ThisForm.oVPMDataHandler) and decrypts the fields for display on the Users form. The DecryptString method takes a string encrypted with the VPME encryption algorithm and returns a decrypted string of the same length.

You can see the code in these methods in the Users class in the VPMSEC.VCX class library and the VPMDataHandler class in the VPMDATAHANDLER.VCX class library. You’ll find the VPME encryption algorithm in the EncryptString method.

More:

User Data Record Layout and oSec Properties