yanapermana / metadecryptor

Tools to decode, decrypt, analyze cipher and hopefully can be a cryptography learning tool.
Other
41 stars 15 forks source link

Python 2.7 compatibility? #1

Open ghost opened 8 years ago

ghost commented 8 years ago

Why we must use Python 3 to use this script?

Is it because of print function in vigenere3.py? I see there is code like 'print('Possible letters for letter %s of the key: ' % (i + 1), end='')' which is not a valid syntax for Python 2.7 (end = '' not treated as an argument). Actually we can create a custom printf function that work just like the code before (in both Python 2.7 and 3).

Is there any other issues regarding of Python 3?

yanapermana commented 8 years ago

When I developed this tool, I think Py3 is very good for the future... for print function, I think there are various differences between Py3 and Py2. Because the Py2 has not been so flexible in byte translation and I want avoid the use of struct module.

ghost commented 8 years ago

So, basically if we want to use this script with Python 2.7 we only need to tweak the print function in vigenere3.py and there is no any functionality issues if we use Python 2.7?

Nice script btw. I will use this for my next cryptanalysis :+1:

motorheadtech commented 5 years ago

how am i suppose to execute the metadecryptor program, nothing i have tried works, either i am missing an package to install or something isnt compatible. can you provide step by steps?