SocialluxSociallux
Toggle navigation menu
Docs navigationv

Primitive

secret.encrypt

BETA

Short name: encrypt

Version: 1.0.0

Encrypts a JSON value into a sensitive-field envelope (SOCIALLUX_THEORY §13).

Back to primitive library

Inputs

KeyTypeRequiredDescription
ownerIdstringfalseOwner under whose KEK the envelope is sealed. Defaults to the caller's user id. Admins may specify another owner.
valueanytrueJSON-serializable plaintext to encrypt. May not already be an envelope.

Outputs

KeyTypeRequiredDescription
envelopeobjectfalseSealed sensitive-field envelope.