
Hello, I have a question, person 1 and 2 has uids.
I want to generate a third uid from the first two ids. This new ID should always be the same for only these two id combo and not any other combo.
Any ideas?

thirdUid = firstUid + '|' + secondUid;
😁

Or doing an XOR on both values

Thankyou @Steven.... But I require the third uid to be order independent from the first two

First+sec , sec+first should yeild the same unique result

Xor should work then

What is xor?

Exclusive or.
You can probably search online for stuff like this. You're looking for a hashing algorithm where order doesn't matter

I can do that with two, appwrite unique.IDs ?

Yes
Recommended threads
- Appwrite Function get Execution ID
Is there a way to get the execution Id of the function's "own" execution inside the function? I couldn't find any environment variable for it [here](https://app...
- Functions fail to deploy after switching...
Hi <@1087889306208718959> , after switching my self-hosted Appwrite instance to use AWS S3 as the storage backend, my Cloud Functions stopped working. I’m runni...
- Subject: Function req.body Empty Despite...
Hi Appwrite Support Team, I'm encountering a persistent issue where my Appwrite function is receiving an empty req.body, even though my cURL requests successfu...
