PradyumnaKrishna / enigma-protocol

An end to end encrypted messenger using Flask, SocketIO, and Vue.js
https://protocol.onpy.in
MIT License
20 stars 34 forks source link

Breakdown of long text message. #20

Closed PradyumnaKrishna closed 11 months ago

PradyumnaKrishna commented 12 months ago

Description I found the text doesn't sends and breaks when we send a long text message. First part is to look for the problem. I guess the issue is encryption can't encrypt large payload. It may be the limitation of RSA algorithm.

Possible Solution There can be a numerous solutions.

  1. First solution is split the text, encrypt it and send it in a sequence one by one. But the problem if a payload gets lost or sequence order mismatch then its hard to decrypt.
  2. (preferred) Modify the encryption algorithm, use of both symmetric and asymmetric keys. You can take a reference from https://www.sitepoint.com/encrypt-large-messages-asymmetric-keys-phpseclib/ for the encryption algorithm. We use node-forge API for generating cryptographic keys, we can use AES-256 as a symmetric key.

If you have another solution, feel free to share.

resonating-homesh commented 12 months ago

@PradyumnaKrishna I would like to try working on this issue as a part of GSSOC '23. Please assign it to me.

resonating-homesh commented 12 months ago

Also, I would like to know what is the current limit for text messages to be sent?

PradyumnaKrishna commented 12 months ago

I guess @Sukhendu2002 is working on this.

PradyumnaKrishna commented 12 months ago

Also, I would like to know what is the current limit for text messages to be sent?

I am not sure about it but I guess the limit is 128 byte (saw it somewhere).

Sukhendu2002 commented 12 months ago

@PradyumnaKrishna, Can you please assign this to me

resonating-homesh commented 12 months ago

Is there any different channel to ask for to get issues assigned @PradyumnaKrishna ?

PradyumnaKrishna commented 12 months ago

Is there any different channel to ask for to get issues assigned @PradyumnaKrishna ?

No, He got it assigned from other issue.

PradyumnaKrishna commented 11 months ago

Need any help @Sukhendu2002?

Sukhendu2002 commented 11 months ago

It will be completed by EOD