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

Feature request: New padding in AES encrypt and decrypt #1283

Closed
fabio-neo opened this issue Dec 9, 2021 · 5 comments
Closed

Feature request: New padding in AES encrypt and decrypt #1283

fabio-neo opened this issue Dec 9, 2021 · 5 comments
Labels

Comments

@fabio-neo
Copy link

Is your feature request related to a problem? Please describe.

I am trying to use the AES encrypt and decrypt but the system I am testing uses different padding , because of this characteristic my crypt and decrypt are different from what I wish.

Describe the solution you'd like

i would like this data 3030303030303030303030303030303030303030303033030303030303030303
turn this data 3F 50 8C AC B4 5D 6D 9A 58 7B 56 8D 48 40 F1 D6 88 2B 3A 96 9A 48 AF DD EE 0D 3E F8 22 CF B4 05
and not this one E1 25 00 FD 5C 98 CF 26 5F D8 BA 4B 60 26 29 4E 90 4A B0 8D 27 2B 9C A8 61 79 59 D5 DE 8E 81 B9
D2 FF F4 14 94 FF 3D C2 88 7A 1B C9 5E 3D 6C DB

Describe alternatives you've considered
I think that link help to understand what I would be implemented

Additional context
I am using AES-CBC and AES-ECB encrypted methods.
I follow this link help me to discover different padding methods:
https://the-x.cn/en-us/cryptography/Aes.aspx

image

@mt3571
Copy link
Contributor

mt3571 commented Dec 9, 2021

Could you provide a link to a recipe in CyberChef that recreates this issue? I am unable to recreate it without some more details e.g. the key you are using

@mikecat
Copy link
Contributor

mikecat commented Dec 14, 2021

How to reproduce "not this one" looks like:

AES Encrypt, To Hexdump - CyberChef

How did you create the expected data 3F 50 ... B4 05?
The image doesn't look related to this (at least for me).

@fabio-neo
Copy link
Author

i would like this data 3030303030303030303030303030303030303030303033030303030303030303
turn this data E1 25 00 FD 5C 98 CF 26 5F D8 BA 4B 60 26 29 4E 90 4A B0 8D 27 2B 9C A8 61 79 59 D5 DE 8E 81 B9
and not this one E1 25 00 FD 5C 98 CF 26 5F D8 BA 4B 60 26 29 4E 90 4A B0 8D 27 2B 9C A8 61 79 59 D5 DE 8E 81 B9
D2 FF F4 14 94 FF 3D C2 88 7A 1B C9 5E 3D 6C DB

this time i double checked : LINK

@n1474335
Copy link
Member

NoPadding options have been added for CBC and ECB modes in AES, DES and Triple DES Decrypt operations in v9.37.0 #1189

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

4 participants