System.IOUtils.TFile.Encrypt

From RAD Studio API Documentation
Jump to: navigation, search

Delphi

class procedure Encrypt(const Path: string); static;

C++

static void __fastcall Encrypt(const System::UnicodeString Path);

Properties

Type Visibility Source Unit Parent
procedure
function
public
System.IOUtils.pas
System.IOUtils.hpp
System.IOUtils TFile

Description

Encrypts a file at a given path.

Use Encrypt to encrypt a given file using the operating system-provided facilities. The following table lists the parameters expected by this method:


Name Meaning

Path

The path to the file that is to be encrypted.

Note: Encrypt raises an exception if the source file does not exist, the paths are invalid, or the user does not have enough privileges to perform the encryption.

Note: Encrypt is present only on the Windows platform, and can be used only on files that reside on NTFS (New Technology File System) partitions.

See Also