## NAME

gdcloud kms keys encrypt - Encrypt the plaintext using the passed key and return the ciphertext file.

## SYNOPSIS

```text
gdcloud kms keys encrypt KEY_NAME [flags]
```

## DESCRIPTION

This command encrypts the plaintext using the passed key and returns the ciphertext file.

### REQUIRED FLAGS

```text
      --ciphertext-file string   Output file that contains the encrypted plaintext.
      --plaintext-file string    File to encrypt.
```

### OPTIONAL FLAGS

```text
      --additional-authenticated-data-file string   Provides additional authenticated data.
      --timeout duration                            Time limit to complete the encrypt crypto operation. (default 3m0s)
```

### GDCLOUD WIDE FLAGS

These flags are available to all commands: `--configuration`, `--format`, `--help`, `--project`, `--quiet`.

For more information, see the [gdcloud CLI reference overview](https://docs.cloud.google.com/distributed-cloud/hosted/docs/latest/gdcag/resources/gdcloud-reference/gdcloud.md.txt) page.