Encrypt Action—Setting Properties

The Encrypt action is used to encrypt one or more files using a specified encryption type. You can use passphrases or public/private key encryption. PGP is also supported provided it is installed on the system.

Also, you can use the properties box to generate new public and private key files.

To enter Encrypt properties

  1. From the Task Builder Available Actions pane, open the Cryptography folder and double-click the Encrypt action or drag it into the Steps pane.

  2. In the Source box, click the Open Folder button and navigate to the file to be encrypted.
    To specify more than one file

    • Select one file in the source folder and click Open.

    • Use a wildcard character, asterisk (*) or question mark (?) to replace text in the file name. For example, use *.DOC to include all files in the selected folder with a .DOC extension.

    • Use the Options and Attributes tabs (see below) to enter specific file selection properties.

  3. In the Destination box, click the Open Folder button , navigate to the destination folder, enter a file name, and click Save. If you want the encrypted files to replace the source files, make the entry match the Source entry, and select Overwrite if exists in the Options tab (see below). You can also include additional subfolders in the path. Folders that do not exist will be created at runtime provided the logged-on user has the rights to do so.
    For multiple files

    Use a wildcard character, asterisk (*) or question mark (?), to replace text in the file name. For example, C:\DestinationFolder\*Encrypted.DOC.

  4. In the Type box, select the type of encryption: Passphrase, Public/Private Key, PGP Passphrase, PGP Public/Private Key. (PGP can only be used if it is already installed on your system.)

  5. Enter or select the applicable encryption properties.

  6. To enter file selection properties for multiple files

    1. Click the Options tab and select or clear the check boxes according to the following guidelines:

      • Include subfolders: includes the subfolders of the selected source folder. If this is not selected, the files stored directly in the selected source folder are encrypted and the subfolders are ignored.

        • Preserve folder structure: maintains the folder structure for the subfolders as it exists in the source location. If this is not selected, files from the subfolders are placed directly into the destination folder.

      • Overwrite if exist: overwrites any existing files in the destination location that have the same names as the specified destination files. If this is not selected, files that already exist are skipped.

        • Only if newer: overwrites files only if the source file is newer than the destination file.

        • Only if exists in destination: encrypts only files that already exist in the destination location. All other files in the selected source folder are ignored.

        • Overwrite read-only files: overwrites files that are marked read-only. If this is not selected read-only files are skipped.

        • Overwrite hidden files: overwrites files marked hidden. If this is not selected, hidden files are skipped.

      • Turn archive attribute off: turns off the Windows archive attribute in the source files. This indicates to many backup programs that the file has already been backed up.

    2. In the Exclude mask box, enter the names of any files or folders within the selected source folder that you want to exclude from the action. You can use asterisk (*) and question mark (?) as wildcard characters. Separate multiple entries with a pipe symbol (|).

      Select the Regular expression check box, to use a regular expression in the Exclude mask box.

    3. To exclude files from the action based on date, select the Only if newer than or Only if older than check boxes. Then use the date and time boxes to select the desired date and time. You can also click the Custom button and select a limiter such as Last 24 hours, or you can select Expression and enter an expression.

    4. To limit the action according to file attributes, click the Attributes tab and then select On or Off for any attributes that you want used as criteria in the file selection. The default is Doesn't matter, which means the attribute will be ignored. The attributes to select from are: Read-only, Archive, System, Hidden, Compression, and Encrypted.

  7. If you want to use a custom description, click the Description tab, select Use custom step description, and type the description. This description will display in the Steps pane in place of the default description.

  8. To set error handling, refer to Step Error Handling.

  9. Click OK when finished.

See Also

About Actions

Adding Task Steps

Encrypt Action