+ 1

Please find a bug or security issue in the algorithm and code

Link: https://code.sololearn.com/cGIaS88cyz6k/?ref=app The cryptographic algorithm uses the idea, " transposing a matrix twice brings the original matrix ". Please can you go through the code and help me findout any bug in the algorithm (or in the code). Thanks in advance !!!

12th Dec 2021, 7:29 PM
Md. Faheem Hossain
Md. Faheem Hossain - avatar
2 Respuestas
+ 2
In the random docs it is stated to use secret lib instead for security purposes. It is because random is not REALLY random. And there instead of randint(0,19) you would use randbelow(19) from secrets.
12th Dec 2021, 7:42 PM
Herr Rozwel
Herr Rozwel - avatar
0
Herr Rozwel Thanks for your suggestion : )
13th Dec 2021, 5:09 AM
Md. Faheem Hossain
Md. Faheem Hossain - avatar