How-To: Encrypt Input Message
Prerequisites
Encryption Keys:
A Secret Key must be defined in the Query Client to encrypt and decrypt messages.
The corresponding Evaluation Key must be deployed in LatticaAI.
User Access Token:
The user must have a valid Access Token, which provides permission to interact with the AI model.
Tokens are unique to each user and model.
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:
Last updated
Was this helpful?