Working with a Data Matrix in C
Working with a Data Matrix in C
TEMatrixEncrypt() and TEMatrixDecrypt() are used to encrypt/decrypt a 2-D data matrix. The indices of the matrix start at 1. Data contained in the matrix can be encrypted, decrypted.
The following sequence describes how to encrypt and decrypt customer data with TEMatrixEncrypt() and TEMatrixDecrypt().
- Create a TEMatrix handle
- Set the decode mode if necessary
- Set the data to be encrypted or decrypted into the matrix, and then set hidden links (t-Tags) if necessary
- Encrypt or decrypt the data
- Set the decode mode if necessary
- Get the encrypted or decrypted data, and get hidden links (T-tags) if necessary
Code Samples
See the C environment settings for details on setting the project environment.
c_encryptmatrix.c
The complete source for this sample, together with its console output, is published in the SDK reference and is the maintained copy: