# rms_encrypt

The `rms_encrypt` function encrypts files using Microsoft Azure Rights Management (RMS) encryption.

## Syntax

    rms_encrypt( doc, sectionName )

## Arguments

Argument | Description
--- | ---
`doc` | (LuaDocument) The document that represents the file to encrypt.
`sectionName` | (string) The name of a section in the CFS configuration file that contains configuration parameters for RMS encryption. For information about the parameters that you can use to configure this task, see RMS Task Parameters.

## Returns

Boolean. Returns `true` if encryption is successful.

_FT_HTML5_bannerTitle.htm