Unprotect

<< Click to Display Table of Contents >>

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

Unprotect

Previous pageReturn to chapter overviewNext page

Decrypts the data in a specified byte array and returns a byte array that contains the decrypted data.

 

encryptedData - A byte array containing data encrypted using the Protect method.

optionalEntropy - An optional additional byte array that was used to encrypt the data, or null if the additional byte array was not used.

scope - One of the enumeration values that specifies the scope of data protection that was used to encrypt the data.

 

Returns: A byte array representing the decrypted data.

 

Unprotect                       PROCEDURE(STRING encryptedData, <STRING optionalEntropy>, DataProtectionScopeEnum scope = DataProtectionScope::CurrentUser), *STRING