[**simplex-chat**](README.md)

***

[simplex-chat](README.md) / [core](Namespace.core.md) / chatEncryptFile

# Function: chatEncryptFile()

> **chatEncryptFile**(`ctrl`, `fromPath`, `toPath`): `Promise`\<[`CryptoArgs`](core.Interface.CryptoArgs.md)\>

Defined in: [src/core.ts:65](../src/core.ts#L65)

Encrypt file

## Parameters

### ctrl

`bigint`

### fromPath

`string`

### toPath

`string`

## Returns

`Promise`\<[`CryptoArgs`](core.Interface.CryptoArgs.md)\>
