Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Bug] AES Decryptor not functioning as expected #1935

Open
1 task
RomanJos opened this issue Oct 16, 2024 · 3 comments
Open
1 task

[Bug] AES Decryptor not functioning as expected #1935

RomanJos opened this issue Oct 16, 2024 · 3 comments
Labels
bug Something isn't working

Comments

@RomanJos
Copy link

RomanJos commented Oct 16, 2024

Operating System

Windows

What's the issue you encountered?

Hello, I am having trouble reproducing a file decryption done in cyberchef in ImHex. I waited a bit before submitting this issue to cool down my brain, so there must be a difference in how cyberchef and ImHex decrypt an AES file, I have added screenshots, I hope you can see if there is something wrong !

  • I also tried to play with the nonce buffer size, but maybe it needs to have a value? (it crashes when I set a big buffer size btw).
  • I converted the strings to hex and put it into an input integer node to replicate the screenshot in the readme and it give the same result, the strings don't have space or anything too
  • The files are normally decrypted using wincrypt, such as this example code
    Capture d'écran 2024-10-16 123538
    Capture d'écran 2024-10-16 123557
    (its a png inside gzipped)

Capture d'écran 2024-10-16 123837
And by the way, why is the ASCII different too ? the hex representation is the same
image

Thank you really much for your time, hope we can resolve this issue !

How can the issue be reproduced?

I can give you the file if you want

ImHex Version

1.35.4

ImHex Build Type

  • Nightly or built from sources

Installation type

MSI

Additional context?

No response

@RomanJos RomanJos added the bug Something isn't working label Oct 16, 2024
@RomanJos
Copy link
Author

I can confirm it work with openssl too : openssl.exe' aes-128-cbc -d -in "n42176fb.png" -K '5A613123536750384924364054763472' -iv '536572562e41645640355365534b6559' --out out.png.gz
I don't know rust or C++ so I can't really help more

@RomanJos RomanJos changed the title [Bug] [it may be me] AES Decryptor not functioning as CyberChef's one [Bug] AES Decryptor not functioning as expected Oct 18, 2024
@elprogramadorgt
Copy link

Hello everyone, I would like to help with this, I promise to do my best in order to fix anything you need me todo, and sorry in advance for any stupid question I may ask!

@RomanJos
Copy link
Author

RomanJos commented Dec 8, 2024

I tested on the latest nightly and I can't get it working in any way, all I have is "CIPHER - Bad input parameters", nothing in Extra>Log console set at debug

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants