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

getting a IllegalBlockSizeException #6

Closed
realcarlos opened this issue Mar 30, 2018 · 6 comments
Closed

getting a IllegalBlockSizeException #6

realcarlos opened this issue Mar 30, 2018 · 6 comments
Assignees

Comments

@realcarlos
Copy link

realcarlos commented Mar 30, 2018

Hi, when I write a long string (>600 bytes) , the exceptiong throws.

java.lang.IllegalArgumentException: Unsupported value: javax.crypto.IllegalBlockSizeException: input must be under 256 bytes

any idea? thank you!

@savy-91
Copy link

savy-91 commented Mar 31, 2018

Same problem here!

@mogol
Copy link
Owner

mogol commented Apr 1, 2018

Thanks for reporting
I will check

@mogol mogol self-assigned this Apr 1, 2018
@yathit
Copy link

yathit commented Apr 10, 2018

Same problem here. I think after Dart 2.0 upgrade.

@mogol
Copy link
Owner

mogol commented Apr 12, 2018

I will update implementation.

  • generate random KEY and encrypt it with RSA.
  • encrypt payload with AES, using KEY

Likely, it would be breaking change 🎉

@mogol
Copy link
Owner

mogol commented Apr 14, 2018

Added basic implementation #8

@mogol
Copy link
Owner

mogol commented Apr 14, 2018

Please try 3.0.0 version

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

4 participants