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
- My Bill
I have an old project from appwrite 2 years ago and I did not pay a 15 usd. Now I am planning to pay it so I can reuse my Card. now I was shocked why it became ...
- iOS Auth - Apple OAuth not working.
when i use the prod app, the apple auth on ios is not working, it shows me: missing redirect url. however the debug version, connected to another project is wor...
- Bug Report: Appwrite Cloud Functions β E...
Bug Report: Appwrite Cloud Functions β ERR_INVALID_CHAR on Execution Summary: There is a critical platform-level bug affecting Appwrite Cloud Functions in the ...