[API reference](https://evolu.dev/docs/api-reference) › [@evolu/sqlite-wasm](https://evolu.dev/docs/api-reference/sqlite-wasm) › SqliteEncryptedFileDatabaseOptions

Defined in: [packages/sqlite-wasm/src/Database.ts:664](https://github.com/evoluhq/evolu/blob/bc4578a260dd15d5bbf94b83765ca05984d194cb/packages/sqlite-wasm/src/Database.ts#L664)

A database file on a [SahPool](https://evolu.dev/docs/api-reference/sqlite-wasm/interfaces/SahPool) that Evolu's codec encrypts, in the
format of SQLite3 Multiple Ciphers' `sqlcipher` scheme.

Only the database file and its journal are encrypted. The connection attaches
other databases read-only and creates no file, because SQLite ignores the
`KEY` clause of `ATTACH`, and `VACUUM INTO` writes a plaintext file, where
2.2.4 encrypted both with the database's key or the `KEY` of `ATTACH`.

## Extends

- [`Typed`](https://evolu.dev/docs/api-reference/common/Type/interfaces/Typed)\<`"EncryptedFile"`\>

## Properties

<a id="key"></a>

### key

```ts
readonly key: Uint8Array<ArrayBufferLike> & Brand<"Entropy"> & Brand<"Length32"> & Brand<"EncryptionKey">;
```

Defined in: [packages/sqlite-wasm/src/Database.ts:675](https://github.com/evoluhq/evolu/blob/bc4578a260dd15d5bbf94b83765ca05984d194cb/packages/sqlite-wasm/src/Database.ts#L675)

The raw key, which the open stages in wasm memory for the codec, which
keeps its own copy until the database is disposed.

---

<a id="path"></a>

### path

```ts
readonly path: string & Brand<"SqliteVfsPath">;
```

Defined in: [packages/sqlite-wasm/src/Database.ts:670](https://github.com/evoluhq/evolu/blob/bc4578a260dd15d5bbf94b83765ca05984d194cb/packages/sqlite-wasm/src/Database.ts#L670)

The path of the file in the pool, as [SqliteFileDatabaseOptions.path](https://evolu.dev/docs/api-reference/sqlite-wasm/interfaces/SqliteFileDatabaseOptions#path)
describes.

---

<a id="type"></a>

### type

```ts
readonly type: "EncryptedFile";
```

Defined in: packages/common/dist/src/Type.d.ts:9304

#### Inherited from

[`Typed`](https://evolu.dev/docs/api-reference/common/Type/interfaces/Typed).[`type`](https://evolu.dev/docs/api-reference/common/Type/interfaces/Typed#type)

---

<a id="vfs"></a>

### vfs

```ts
readonly vfs: SahPool;
```

Defined in: [packages/sqlite-wasm/src/Database.ts:665](https://github.com/evoluhq/evolu/blob/bc4578a260dd15d5bbf94b83765ca05984d194cb/packages/sqlite-wasm/src/Database.ts#L665)