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

decypt have a error #7

Open
linkaituo opened this issue Nov 23, 2023 · 1 comment
Open

decypt have a error #7

linkaituo opened this issue Nov 23, 2023 · 1 comment

Comments

@linkaituo
Copy link

hey, i use in flutter 3.13.9, have a error:

Invalid argument(s): Invalid or corrupted pad block
package:pointycastle/paddings/pkcs7.dart 42:7 PKCS7Padding.padCount
package:pointycastle/padded_block_cipher/padded_block_cipher_impl.dart 112:30 PaddedBlockCipherImpl.doFinal
package:pointycastle/padded_block_cipher/padded_block_cipher_impl.dart 74:25 PaddedBlockCipherImpl.process
package:encrypt/src/algorithms/aes.dart 68:22 AES.decrypt
package:encrypt/src/encrypter.dart 39:10 Encrypter.decryptBytes
package:file_cryptor/src/file_cryptor.dart 81:39

anybody meet this problem, hlep me ..

@alpaca211
Copy link

I noticed the issue you're experiencing with decryption errors in the file_cryptor package. This might be related to a known issue in the encrypt package, specifically in versions 5.0.2 and 5.0.3, where changes in the behavior of IV.fromLength() have caused encryption and decryption issues.

You can find more details on this issue here:
leocavalcante/encrypt#314

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