Encrypt / Decrypt Example (not included in filePro Lite)

 

For this example, use "Define Files" to create a simple filePro file with 4 fields as follows.

FIELD 1   data 64 *

FIELD 2   method 20 *

FIELD 3   key 24 *

FIELD 4   nonce 24 *

 

Use "Define Processing" to create an "input processing table" with the following lines.

 

@wuk*

ba(64,*) = encrypt(1,2,3,4)

bb(64,*) = decrypt(ba,2,3,4)

display

end

 

Then use "Define Screen" and place fields *1, *2, *3, *4 !ba, and !bb on the screen.

 

Enter any 4 sets of values for data/method/key/nonce and press [F8] to display the encrypted and decrypted data in fields "ba" and "bb". Try various combinations for each field value e.g. "data", "method", "key", etc. The results of encryption will change with each combination of field values in field "ba" and the decrypted value (displayed in field "bb") should match the value entered in field "data".