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
- Recover archived project
Hello, I've come to understand that the free plan is only limited to 2 projects now. I have deleted all my projects to keep at 2. One of them are in archived pr...
- Can't create Can't create organization o...
getting this message: Cannot read properties of undefined (reading '$id') in the network inspection, the error we are getting the following error but we just lo...
- Project archived — request to restore
Hi, I’m the owner of project hafiz_fyp2 project (ID: 692432fd0011fac7c943). It was archived and I can’t find a restore option. Can you help me reactivate it?