Protect

<< Click to Display Table of Contents >>

Navigation:  EasyDotNet documentation > Classes > TProtectedData class > Methods >

Protect

Previous pageReturn to chapter overviewNext page

Encrypts the data in a specified byte array and returns a byte array that contains the encrypted data.

 

userData - A byte array that contains data to encrypt.

optionalEntropy - An optional additional byte array used to increase the complexity of the encryption, or null for no additional complexity.

scope - One of the enumeration values that specifies the scope of encryption.

 

Returns: A byte array representing the encrypted data.

 

Protect                         PROCEDURE(STRING userData, <STRING optionalEntropy>, DataProtectionScopeEnum scope = DataProtectionScope::CurrentUser), *STRING