-
Notifications
You must be signed in to change notification settings - Fork 1
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Add Ecryption #15
Comments
I’ll take this one @achhayapathak |
Sure @yashkathe |
Did you work on this @yashkathe or shall I pick this up? |
I'll take this one |
The problem with adding encryption is that most algorithms require a special key, so how can we handle that? Or is there any encryption algorithm library that you can recommend? |
This one will be a challenging problem to work on. One way to resolve this is to:
You can use libraries like crypto or bcrypt and any encryption algorithm like AES, RSA or blowfish to achieve this. My suggestion will be to go with AES-256 encryption with CBC mode. I have the code for encrypt and decrypt functions also for this one so if you want I can share that with you but you will get to learn a lot about encryption if you figure that out yourself. |
I will try to research a bit but nevertheless, still share the code you wrote so I can have a look |
const crypto = require('crypto'); // Generate a secure random key and initialization vector (IV) // Function to encrypt a message // Function to decrypt a message |
This one is for the server side. For the client side, the functions will remain the same just the key and iv won't be generated but accepted by the user through a prompt. |
Thank you for sharing the code, I'll have a look |
are you working on this @yashkathe ? |
I'm a bit busy currently. I will take a look when I am free. If its a bit urgent you can start with the development. |
Encrypt the messages the enhance security.
The text was updated successfully, but these errors were encountered: