[API reference](https://evolu.dev/docs/api-reference) › [@evolu/common](https://evolu.dev/docs/api-reference/common) › [local‑first/Protocol](https://evolu.dev/docs/api-reference/common/local-first/Protocol) › getEncryptedDbChangeLength

```ts
function getEncryptedDbChangeLength(
  message: CrdtMessage,
): number &
  Brand<"NonNaN"> &
  Brand<"Finite"> &
  Brand<"Int"> &
  Brand<"NonNegative"> &
  Brand<"Positive">;
```

Defined in: [packages/common/src/local-first/Protocol.ts:2521](https://github.com/evoluhq/evolu/blob/4eedb2272841bdeb2d7c3387784ba157d2f33f1c/packages/common/src/local-first/Protocol.ts#L2521)

Returns the length of the [EncryptedDbChange](https://evolu.dev/docs/api-reference/common/local-first/Storage/type-aliases/EncryptedDbChange) that
[encodeAndEncryptDbChange](https://evolu.dev/docs/api-reference/common/local-first/Protocol/functions/encodeAndEncryptDbChange) returns for a message, without encrypting it,
so a client counts an owner's [OwnerUsage.storedBytes](https://evolu.dev/docs/api-reference/common/local-first/Owner/interfaces/OwnerUsage#storedbytes) as a relay that
stores the change does.