TheNushu / RSA_Alg_Labs

An implementation of the RSA algorithm to encrypt and decrypt text
0 stars 0 forks source link

Peer review #2

Open ihakkin opened 2 months ago

ihakkin commented 2 months ago

Repository was copied 18.6.2024 at 11.45.

Project seems interesting and overall appears to be in a good state. Here are some thoughts and suggestions.

rsa_functionality.py

Current implementation: image

Suggested modification : image This way there is no need to initialize variables outside the loop that might need to be recalculated anyway.

User Interface:

UI is not the main focus of the course, but here are some comments about it.

I also got the same error message when decrypting a longer (>150 characters) string.

Tests

I learned a lot while reviewing your project and studying the RSA algorithm more in depth. I hope some of my comments might be helpful.

TheNushu commented 2 months ago

Thank you so much for the feedback!

  1. The suggested code modification seems like a nice one and I will implement it in the project.
  2. Thanks for raising the issue it is weird that the same error message is on incorrect input and on "big" texts. I am guessing that something happens in the encryption that loses some data. I will investigate deeper.
  3. Hmm, I think a fix of that should be to make the UI fullscreen. I was debating with myself if I should do it, but now that you also mentioned it, sounds like a wise decision.
  4. Yes, the current level of testing wasn't fully covering because I had some problems setting up the tools and unittesting practice in general. There were some issues when I tried encrytion-decryption testing (which might be tied to the bug you found I would guess) that are now some of the top priorities of work for the project. :D

Thank you for the review once again!