Security Examples

Example 1. Encrypting the application user password using MD5Digest encryption before saving to Settings.Password.

Settings.Password = Security.MD5Digest(edtPassword)

Note:

Example 2. Encrypting an input text.

Security.SetAlgorithm(ENCRYPT_3DES)

Variable1 = Security.Encrypt("BrightSoft!02", edtText)

Note:

Example 3. Decrypting the database field before displaying as text.

Security.SetAlgorithm(ENCRYPT_3DES)

edtDecryptResult = Security.Decrypt(edtPass, Variable1)

Note: