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

PKCS7 padding decryption for AES-128 CBC? #25

Open
agathauy opened this issue Aug 22, 2018 · 1 comment
Open

PKCS7 padding decryption for AES-128 CBC? #25

agathauy opened this issue Aug 22, 2018 · 1 comment
Assignees

Comments

@agathauy
Copy link

I would just like to ask if the library uses PKCS5? It isn't explicitly noted anywhere I think, although my guess is that it uses PKCS5?

The library can decode PKCS7 but the padding is of course incorrectly decrypted. Hence, there are a garbage bytes after using a delimiter.

I'm not really sure what to do about it, as sometimes the decryption fails. Although most of the time it works. And I think it may be because of the padding.

@spaniakos
Copy link
Owner

the library it supposed to use PKCS7,
can you sent me a sample code and the output?
if you want to do it in private drop me an email @ spaniakos@gmail.com

thank you.

@spaniakos spaniakos self-assigned this Aug 24, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants