@me2em/crypto
    Preparing search index...

    Function generateFileKey

    • Generates a cryptographically random 32-byte file key.

      Returns Uint8Array

      32 random bytes to be used as the per-file AES-256 key.

      const fileKey = generateFileKey();
      // use with encryptMediaChunk / wrapKeyForRecipient