Skip to content

basalt / auth/src / SecretBoxKey

Interface: SecretBoxKey ​

Defined in: auth/src/secret-box.ts:65

One entry of the key ring.

Properties ​

id ​

> id: string

Defined in: auth/src/secret-box.ts:70

Stable identifier stored with every ciphertext ([A-Za-z0-9_-]{1,64}). Keep it in the ring as long as any row was sealed with it.


key ​

> key: string | Uint8Array<ArrayBufferLike>

Defined in: auth/src/secret-box.ts:72

Key material, at least 32 bytes. Never used raw: the AES key is derived with HKDF.

Released under the MIT License.