# 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 Encrypt Task Parameters.

## Returns

Boolean. Returns `true` if encryption is successful.

© Copyright 2019 Micro Focus or one of its affiliates | Send documentation feedback Close Send documentation feedback To open the configured email client on this computer, open an email window. Otherwise, copy the information below to a mail client, and then send this email to swpdl.idoldocsfeedback@microfocus.com. We appreciate your feedback! Product: Topic Title: Help Topic: Feedback:

_FT_HTML5_bannerTitle.htm