How to Secure Fields on a Insert/Update Record
So let's say you have form which contains a credit card number.
Let's apply the Secure Encrypt Server Behavior
Then the Secure Encrypt Dialog Box will appear. Enter a secret keyword. This keyword is what the field values will be encrypted with.
You will now see the Secure Decrypt Behavior in the Server Behaviors list.
That's it - your done!
Be sure to upload the /includes/ folder. There is a file in here that has the encryption & decryption code.
How to Decrypt an Encrypted Feild
If you put a recordset containing an encrypted field on a page, here's how it will look:
Decrypting fields is also very quck & easy. The first step is to add the Secure Decrypt Server Behavior to the page.
Now enter the same key you originally used to encrypt the field with. It must be exactly the same.
Now we need to apply the decryption format to all the data bindings on the page that are encrypted.
Then look at the Server Behavior list and you will see it highlighted. Now double click on it.
Now in the Dynamic Text properties box, select the "Secure Decrypt" format.
Do this for all the bindings on the page that you need to decrypt. Finally, how our page looks now...