---
title: sealProtectedPayload
description: 'Seal one group-owned payload. The ID is authenticated, so route swaps fail.'
updated_at: '2026-09-24T16:26:34+02:00'
created_at: '2026-09-24T10:59:07+02:00'
symbol:
  kind: function
  name: sealProtectedPayload
  signatures:
    - >-
      sealProtectedPayload(key: CryptoKey, salt: string, id: string, plaintext:
      Uint8Array):
      Promise<[[reference/api/core/ProtectedEnvelope|ProtectedEnvelope]]>
  parameters:
    - name: key
      type: CryptoKey
    - name: salt
      type: string
    - name: id
      type: string
    - name: plaintext
      type: Uint8Array
  returns:
    type: 'Promise<[[reference/api/core/ProtectedEnvelope|ProtectedEnvelope]]>'
  source: >-
    https://github.com/mia-cx/svartz/blob/711f3906a713c8b9a5a572d0f34c85e90c3bc3d1/packages/core/src/protection.ts#L74
---

# sealProtectedPayload
