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
- Accessing secure files from storage via ...
Hi everyone, can someone tell me what is the preferred way of accesssing user only files from storage in react native? I saved the file with user only read per...
- Confusion around Tables / TablesDB vs Da...
Hello everyone, I ran into quite a bit of confusion when trying to migrate a Function from Databases.createDocument() to the new Tables / Rows API and wanted t...
- Free plan Usage
I using a free plan with one organization. I have three projects but on the free plan I should be able to have 2 projects running But in my case only 1 out of ...