-
Notifications
You must be signed in to change notification settings - Fork 19
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 in decryption algorithm? #15
Comments
hi, can you help adding a full reproduceable example, eg a report or a class, perhaps add it on http://gist.github.com or in a public repository? |
Sure, here is the class I have created from your AES library, as well as a sample report that calls this class. https://gist.github.com/haimat/cd1465f09b65aab731279253340d6f1d |
I don't have the environment any more, but I suggest checking the encoding and possibly padding? |
I tried to find an enconding problem, but didn't work out. Anything I could do for you guys to check that out with the working example I have posted? |
Hi, the gist you posted do not contain code for zdkk_rijndael_utility. Can you post that as well for checking the issue? One more question, are you trying to recreate the utility classes yourself rather than importing from GIT? |
Ohh yes, sure, sorry for that. |
Can you post the hex string after decryption? Let's see what it is.
Matthias <notifications@github.com> 于 2018年4月6日 周五 00:57写道:
… I tried to find an enconding problem, but didn't work out.
But I am far from being a crypto expert :(
Anything I could do for you guys to check that out with the working
example I have posted?
—
You are receiving this because you commented.
Reply to this email directly, view it on GitHub
<#15 (comment)>, or mute
the thread
<https://github.com/notifications/unsubscribe-auth/AKSs1BG6vnGRhssOKFLjiBKBafD4lFFVks5tlx_UgaJpZM4TIv9l>
.
|
The method |
Hi the issue is the parameter p_encdat is converting all the data to upper case causing the issue. I corrected the same and posted in this gist Output I got is : "0075266945" Attached is the output. |
Thank you very much, that's it! |
Hi, I have a string encrypted via OpenSSL command line:
This encrypted string "H6xgbzDoj091wZjAj+mvKA==" is stored in an ABAP string variable. According to a previous ticket here on GitHub I do the following: First call function
SCMS_BASE64_DECODE_STR
like so:Then I decrypt the string via your tool:
Then I remove the trailing CR/LF bytes:
And the last steps:
However, now in
r_decrypted_data
the wrong data is stored: MF¬ö�í«a6Š©wIs this a bug in your library, or am I doing something wrong here?
The text was updated successfully, but these errors were encountered: