Code Monkey home page Code Monkey logo

Comments (6)

AraHaan avatar AraHaan commented on July 18, 2024

It seems the actual problem is something either in the encryption or decryption functions to cbc.

d6b3d4
@BrianGladman got any idea on how to fix this part?

Edit: Now even this is failing too:

E:\Users\Elsword\Desktop\Els_kom_new_Project\bin\x86\Release>kompact_new
Traceback (most recent call last):
  File "<string>", line 7, in <module>
  File "<frozen importlib._bootstrap>", line 971, in _find_and_load
  File "<frozen importlib._bootstrap>", line 955, in _find_and_load_unlocked
  File "<frozen importlib._bootstrap>", line 656, in _load_unlocked
  File "<frozen importlib._bootstrap>", line 626, in _load_backward_compatible
  File "pyeimport.py", line 93, in pyeimport.PyeZipImporter.load_module
  File "<string>", line 1
    $ co∟�‼=utf-8
    ^
SyntaxError: invalid syntax

E:\Users\Elsword\Desktop\Els_kom_new_Project\bin\x86\Release>komextract_new
Traceback (most recent call last):
  File "<string>", line 7, in <module>
  File "<frozen importlib._bootstrap>", line 971, in _find_and_load
  File "<frozen importlib._bootstrap>", line 955, in _find_and_load_unlocked
  File "<frozen importlib._bootstrap>", line 656, in _load_unlocked
  File "<frozen importlib._bootstrap>", line 626, in _load_backward_compatible
  File "pyeimport.py", line 93, in pyeimport.PyeZipImporter.load_module
  File "<string>", line 1
    $ co∟�$‼=utf-8
    ^
SyntaxError: invalid syntax

E:\Users\Elsword\Desktop\Els_kom_new_Project\bin\x86\Release>

The Encrypted file in general is here: https://github.com/AraHaan/Els_kom_new/blob/master/Python/komformat.py

from aes.

Rupan avatar Rupan commented on July 18, 2024

Can you provide a small Python test case which reproduces this bug? The linked file appears to not import the AES code in this repository and it isn't clear to me where the problem lies.

from aes.

Rupan avatar Rupan commented on July 18, 2024

I think I found the bug (it is a logic error in the AES constructor). I should have written unit tests and submitted them with the original pull request. Mea maxima culpa.

from aes.

Rupan avatar Rupan commented on July 18, 2024

I'll submit a pull request once I complete the unit tests in an hour or so.

from aes.

Rupan avatar Rupan commented on July 18, 2024

Can you check #34 and report whether the problem is resolved?

from aes.

AraHaan avatar AraHaan commented on July 18, 2024

Alright sure, I will check and see if it fixes it.

Also the file I linked was the actual file I was encrypting, this file actually imports the module which is used to encrypt / decrypt python code itself: https://github.com/AraHaan/Els_kom_new/blob/master/Python/pyeimporter.py

And just tested it, thanks for the fix.

from aes.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.