Primitive
secret.encrypt
BETAShort name: encrypt
Version: 1.0.0
Encrypts a JSON value into a sensitive-field envelope (SOCIALLUX_THEORY §13).
Back to primitive libraryInputs
| Key | Type | Required | Description |
|---|---|---|---|
| ownerId | string | false | Owner under whose KEK the envelope is sealed. Defaults to the caller's user id. Admins may specify another owner. |
| value | any | true | JSON-serializable plaintext to encrypt. May not already be an envelope. |
Outputs
| Key | Type | Required | Description |
|---|---|---|---|
| envelope | object | false | Sealed sensitive-field envelope. |