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
- [FEAT.] Migrate to Bun 1.3.7 for appwrit...
Bun 1.3.7 Fixes a major bug which increases async/await request speed by 35% https://x.com/bunjavascript/status/2011901977631064495 https://bun.com/blog/bun-v1...
- Appwrite.Network UltraDNS
I am getting a false positive malware issue when trying to access appwrite.network domain. They are currently classifying it as such. Is this something that I a...
- login With OAuth Failed
login With OAuth Failed: when i cliick to login with any of the following (facebook, gmail or apple) am being redirected out of the app to enter my detail, afte...