ProtectFile

<< Click to Display Table of Contents >>

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

ProtectFile

Previous pageReturn to chapter overviewNext page

Encrypts the file.

 

inFile - A file that contains data to encrypt.

outFile - A file that contains the encrypted data.

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.

 

ProtectFile                     PROCEDURE(STRING inFile, STRING outFile, <STRING optionalEntropy>, DataProtectionScopeEnum scope = DataProtectionScope::CurrentUser), BOOL, PROC