Encrypting xID into CEEId Token
To securely encrypt the xID identifier, follow these steps using the CEEId SDK:
Key Retrieval
Ensure the latest decryption keys are obtained by periodically refreshing them via the/keys/refresh
endpoint.Generating the xID
Use theSend
method in the SDK to generate an xID based on the user’s DII (Directly Identifiable Information). This can be done by calling:goxid, err := xidClient.Send(context.Background(), hem.FromEmail(email))
Encrypting xID
Encrypt the generated xID using theTokenFromXID
method:gotoken, err := xidClient.TokenFromXID(xid)
Store the Token
The resulting token can then be stored securely, as required for future transmission.
This process ensures that user identifiers are securely encrypted and ready for integration across compatible environments. You can review further SDK details here.