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

Input lenth error #8

Closed
benittopremkumar opened this issue Oct 4, 2018 · 2 comments
Closed

Input lenth error #8

benittopremkumar opened this issue Oct 4, 2018 · 2 comments
Assignees
Labels
invalid This doesn't seem right

Comments

@benittopremkumar
Copy link

benittopremkumar commented Oct 4, 2018

input characters limited to 16,32,64 and so on otherwise it returns Input buffer too short.

@leocavalcante leocavalcante self-assigned this Oct 4, 2018
@leocavalcante leocavalcante added the invalid This doesn't seem right label Oct 4, 2018
@leocavalcante
Copy link
Owner

This is a "limitation" of the Block cipher specification, as the name says, it operate on blocks, fixed-length blocks, which means fixed-length sizes for both input and key. You should pad your input.
https://en.wikipedia.org/wiki/Block_cipher

If padding is a issue, you can try a Stream cipher, like Salsa20.

@benittopremkumar
Copy link
Author

Thank you

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
invalid This doesn't seem right
Projects
None yet
Development

No branches or pull requests

2 participants