> For the complete documentation index, see [llms.txt](https://docs.bluefletch.com/bluefletch-enterprise/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.bluefletch.com/bluefletch-enterprise/product-guides/device-applications/epm-plugin/technical-guide/epm-encryptor-file.md).

# EPM Encryptor File

Command-line tool that hybrid-encrypts a credential file so it can be imported by the EPM plugin even when it is far larger than RSA's \~245-byte limit.  This tool will generate an encrypted envelope file containing data that EPM will require to read and import the file.  Requires a **Java 11+** runtime.

## Usage

```bash
java -jar epm-encryptor.jar \
  --public-key epm-public.pem \
  --input credentials.csv \
  --output credentials.enc
```

| Flag           | Required | Description                                                                       |
| -------------- | -------- | --------------------------------------------------------------------------------- |
| `--public-key` | yes      | X.509 certificate (PEM or DER) containing the EPM public key                      |
| `--input`      | yes      | Plaintext file to encrypt (e.g. the `key,username,password` CSV)                  |
| `--output`     | yes      | Envelope file to write (raw binary by default)                                    |
| `--base64`     | no       | Write base64 text instead of raw binary (only if a delivery channel is text-only) |

{% hint style="warning" %}
The output is raw binary by default — deliver it as a **shared-file asset**, not an intent extra (large payloads exceed the Android intent size limit).
{% endhint %}

### JAR file and public key

Contact your BlueFletch resource to obtain the JAR file as well as the public PEM file to run the above command.

### Size limit

The encrypted output is capped at **5 MB**. The tool refuses to write a larger envelope; the device enforces the same limit on import. 5 MB is roughly 50,000–100,000 credential rows.

## Notes

* Certificate expiry is not checked; an expired cert still encrypts fine.


---

# Agent Instructions
This documentation is published with GitBook. GitBook is the documentation platform designed so that both humans and AI agents can read, navigate, and reason over technical content effectively. Learn more at gitbook.com.

## Querying This Documentation
If you need additional information that is not directly available in this page, you can query the documentation by asking a question.

Perform an HTTP GET request on the following URL with the `ask` and `goal` query parameters:

```
GET https://docs.bluefletch.com/bluefletch-enterprise/product-guides/device-applications/epm-plugin/technical-guide/epm-encryptor-file.md?ask=<question>&goal=<user_goal>
```

`ask` is the immediate question: it should be specific, self-contained, and written in natural language.
`goal` is what the user is ultimately trying to achieve, the reason they need the answer. Sharing it helps GitBook give you a better, more relevant answer. A goal is most helpful when it describes the outcome the user wants rather than restating the question. For example, with `ask=how do I create an API token`, a goal like `automate deployments from our CI pipeline` lets GitBook tailor the answer to that use case.

The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
