UnprotectFromFile

<< Click to Display Table of Contents >>

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

UnprotectFromFile

Previous pageReturn to chapter overviewNext page

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

 

inFile - A file containing data encrypted using the ProtectToFile 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.

 

UnprotectFromFile               PROCEDURE(STRING inFile, <STRING optionalEntropy>, DataProtectionScopeEnum scope = DataProtectionScope::CurrentUser), *STRING