Revaycolizer
Revaycolizer10mo ago

Messaging web app

Created a messaging web app using convex https://chat-rev.vercel.app
No description
No description
No description
No description
No description
50 Replies
Wayne
Wayne10mo ago
Hi @Revaycolizer thanks for sharing. Do you mind sharing the GitHub repo too. Also I sent you a DM can you check. Thanks
Revaycolizer
RevaycolizerOP10mo ago
github.com/Revaycolizer/chat
Devben
Devben10mo ago
No description
Revaycolizer
RevaycolizerOP10mo ago
Did you sign up? As currently I see no new user registered, could you please share what you were doing that led to that error
Revaycolizer
RevaycolizerOP10mo ago
New look
No description
jamwt
jamwt10mo ago
slick!
Devben
Devben10mo ago
I try to sign up with Google auth after signing up it throw this error
Devben
Devben10mo ago
No description
Revaycolizer
RevaycolizerOP10mo ago
Did you try changing the browser you are using?? Or updating it as it maybe the cause Did you have a try on it?
Revaycolizer
RevaycolizerOP10mo ago
Everything changed as of current updates, more coming soon
No description
Devben
Devben10mo ago
this edge
Devben
Devben10mo ago
No description
Devben
Devben10mo ago
I use chrome before the same with firebase
Devben
Devben10mo ago
No description
Revaycolizer
RevaycolizerOP10mo ago
I wonder what might be the problem there as I see there are two newly registered users and it seems to be working fine for them, as that keeps me wondering as to what might be the cause in your side
Revaycolizer
RevaycolizerOP10mo ago
No description
Revaycolizer
RevaycolizerOP10mo ago
Could you please try using your phone or updating the browser or checking if it's blocking third party apps
Devben
Devben10mo ago
Alright
FleetAdmiralJakob 🗕 🗗 🗙
@Revaycolizer Hi, are the messages e2e encrypted?
Revaycolizer
RevaycolizerOP10mo ago
Absolutely
Revaycolizer
RevaycolizerOP10mo ago
No description
Revaycolizer
RevaycolizerOP10mo ago
Added a switch button to switch to social media and to switch to messaging app
FleetAdmiralJakob 🗕 🗗 🗙
nice, how did you build the e2e encryption?
Revaycolizer
RevaycolizerOP10mo ago
Well I used a package to perform encryption of the messages while sending them and decryption of the messages while rendering them
FleetAdmiralJakob 🗕 🗗 🗙
nice, which packages?
Revaycolizer
RevaycolizerOP10mo ago
crypto-js
FleetAdmiralJakob 🗕 🗗 🗙
Is the project open source?
Revaycolizer
RevaycolizerOP10mo ago
Nope
FleetAdmiralJakob 🗕 🗗 🗙
Ok, would be so nice to see the implementation and learn from your code
Revaycolizer
RevaycolizerOP10mo ago
Worry out give me a few minutes I'm sending the implementation of encryption and decryption Decryption
const decryptImage = (encryptedImage: any) => {
const b = CryptoJS.AES.decrypt(encryptedImage, 'secret key')

const i = b.toString(CryptoJS.enc.Utf8);

return i
}
const decryptImage = (encryptedImage: any) => {
const b = CryptoJS.AES.decrypt(encryptedImage, 'secret key')

const i = b.toString(CryptoJS.enc.Utf8);

return i
}
FleetAdmiralJakob 🗕 🗗 🗙
how do you exchange the secret key?
Revaycolizer
RevaycolizerOP10mo ago
Encryption
const decryptedB = CryptoJS.AES.encrypt(encryptedImage, 'secret key'').toString()
console.log(decryptedB)
// const decryptedImage = decryptedBytes.toString(CryptoJS.enc.Utf8);
return decryptedB;
};
const decryptedB = CryptoJS.AES.encrypt(encryptedImage, 'secret key'').toString()
console.log(decryptedB)
// const decryptedImage = decryptedBytes.toString(CryptoJS.enc.Utf8);
return decryptedB;
};
You can use env variables for that use the same key for encryption and decryption
FleetAdmiralJakob 🗕 🗗 🗙
interesting, but don't have the user encrypt and decrypt the messages? otherwise you can use the secret key to decrypt the messages of your users
Revaycolizer
RevaycolizerOP10mo ago
The key is used to encrypt each message of the user and decrypt it you can think of the way to make it dynamic if you to achieve it that maybe use the userId for encryption or decryption which would have a lot of work around as to decrypt the messages in every conversation with the correct secret key
FleetAdmiralJakob 🗕 🗗 🗙
but you also have access to the user id
Revaycolizer
RevaycolizerOP10mo ago
The users are not the ones encrypting when they type and send the message,they just see what they wrote but encryption is done under the hood Yes exactly
FleetAdmiralJakob 🗕 🗗 🗙
yes, of course, the client's code is encrypting
Revaycolizer
RevaycolizerOP10mo ago
Absolutely I think you get the concept and also decryption occurs server side as I used SSR I fetch the encrypted messages but during rendering I performed decryption under the hood and nothing will be doubted , it will be seen as just there is no encryption while it is automatically happening but under the hood
Revaycolizer
RevaycolizerOP10mo ago
Added features
No description
No description
No description
Revaycolizer
RevaycolizerOP9mo ago
Added online and typing event listening
No description
No description
FleetAdmiralJakob 🗕 🗗 🗙
@Revaycolizer How can I create a chat on desktop? Where do I have to click?
Revaycolizer
RevaycolizerOP8mo ago
There's a plus at the bottom right
FleetAdmiralJakob 🗕 🗗 🗙
Yeah, and if I click on the plus I get redirected to /users and on /users I can't do anything Am I doing something wrong?
Revaycolizer
RevaycolizerOP8mo ago
Just click on any user and you will be redirected to the inbox
FleetAdmiralJakob 🗕 🗗 🗙
Can't click on them
Revaycolizer
RevaycolizerOP8mo ago
Are you clicking at that point ☝️?
FleetAdmiralJakob 🗕 🗗 🗙
I am clicking all the time in the video
Revaycolizer
RevaycolizerOP8mo ago
Well I'll try to check what's the problem there Which browser are you using?
FleetAdmiralJakob 🗕 🗗 🗙
Edge @Revaycolizer
Revaycolizer
RevaycolizerOP8mo ago
Yes

Did you find this page helpful?