Purpose
Encrypts sensitive data using the Security Service. EncryptFromSecurity applies a custom double encryption mechanism. As a result, even when the same plain text and salt are provided, each encryption operation generates a different encrypted value. This approach provides an additional layer of security and is intended for encrypting highly sensitive data, such as passwords.
Syntax
EncryptFromSecurity(Value, Salt)
Arguments
1. Value – The data to be encrypted.
2. Salt – A value combined with the data to generate the encryption key.

Examples
1. The below example returns the encrypted value as
4HalA/Bm5FyC9cOw++lQprnpQ4ljMaa2ePnhLloDPPTb+xMtIQilifWc7W2JFTZX for round 1,
BqJrkxnP0LHUEoMOfDOiZQWIAqhGMa7UEN2dgAqbt+81HbWsFj/lkbd/XLqeA0LL for round 2
and so on.
EncryptFromSecurity(“Password123”, “MySalt”)

2. The below example encrypts the value in TextBox1 using the provided salt and returns the encrypted value to TextBox2.
TextBox2.Value=EncryptFromSecurity(TextBox1.Value,Salt)