Python Forum
Testing homemade encryption program in python - Printable Version

+- Python Forum (https://python-forum.io)
+-- Forum: Python Coding (https://python-forum.io/forum-7.html)
+--- Forum: General Coding Help (https://python-forum.io/forum-8.html)
+--- Thread: Testing homemade encryption program in python (/thread-2276.html)



Testing homemade encryption program in python - LEJONKINGEN - Mar-04-2017

Hi, I´ve made three homemade encryption-programs using python. I´m wondering if anyone could look at these programs and briefly compare the security of them or give tips on how to compare them myself. I gladly accept several individuals perspectives Thanks in advance!
Block Cipher: http://pastebin.com/SzR7d43T
RSA(variant): http://pastebin.com/ZXSpzucJ
Caesar Cipher: http://pastebin.com/eGx7BbPc


RE: Testing homemade encryption program in python - wavic - Mar-04-2017

The Block Cipher and the Caesar Cipher can be easily reverse engineered and with nowadays machines, cracked in a matter of seconds. The RSA weakness is in the random number generator which is not truly random. Also, the keys are stored as sha1 sum which is insecure - proven. If I am not wrong for the last one. I am far from an expert