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
- Error code 526
Site down. Invalid SSL certificate Error code 526 Could anyone take a look please, thank you. Please DM me for detail.
- Appwrite console Oauth providers issue
Hi, I think I found an issue with the oauth providers tab on the console. If I set up a provider and I turn it on, after about a day it automatically disables i...
- Realtime Connection Error After Updating...
I get the following error message now when the realtime subscription picks up a new message. There's more to the error but it makes the discord message too long...