How-To: Encrypt, Execute, and Decrypt in One Step
Last updated
Was this helpful?
Last updated
Was this helpful?
LatticaAI provides a streamlined way to perform end-to-end query execution in a single command using our SDK. Instead of calling separate functions for encryption, query submission, and decryption, this method allows users to provide an input and receive the decrypted output in one step.
This functionality is available in both Python and TypeScript SDKs.
Before executing a complete query, ensure that:
A valid User Access Token is available, provided by the AI Provider for a specific model.
An Evaluation Key (EVK) is generated and published to the LatticaAI backend.
See: [How-To: ]
Use the following code snippet to encrypt the input message. The encryption process takes the User Access Token and the message to be encrypted as parameters: