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

I can't decrypt the text in 5.0.3 😕 #318

Closed
najm-flutter opened this issue Oct 14, 2023 · 11 comments
Closed

I can't decrypt the text in 5.0.3 😕 #318

najm-flutter opened this issue Oct 14, 2023 · 11 comments
Labels
duplicate This issue or pull request already exists

Comments

@najm-flutter
Copy link

my code

Future uncodingthetext(String keyg, msg) async {

final key = Key.fromUtf8('12345678213543543254343432435434');
final iv = IV.fromSecureRandom(16);
final encrypter = Encrypter(AES(key));
final decrypted = encrypter.decrypt64('sOyElxUKoxK4EjTEJms7PE/VIpuxfqNqVPsQdEsuWMEJ60ArKBGlGpANOFDVD73o8y3iZbd8kgjyS9eABXiIxQ==', iv: iv);
print(decrypted);
return decrypted ;

}

The erorr :
Invalid or corrupted pad block

Note : "All the data I entered is correct, yet this error appears." .

@fuyunmanbu
Copy link

I encountered similar problems, I found that 5.0.3 after each encryption results are different

@najm-flutter
Copy link
Author

I encountered similar problems, I found that 5.0.3 after each encryption results are different

So, what is the solution?

@fuyunmanbu
Copy link

fuyunmanbu commented Oct 16, 2023 via email

@najm-flutter
Copy link
Author

Continue to use 5.0.2 发自我的iPhone

------------------ Original ------------------ From: najm-flutter @.> Date: Mon,Oct 16,2023 5:44 PM To: leocavalcante/encrypt @.> Cc: fuyunmanbu @.>, Comment @.> Subject: Re: [leocavalcante/encrypt] I can't decrypt the text in 5.0.3 �� (Issue #318) I encountered similar problems, I found that 5.0.3 after each encryption results are different So, what is the solution? — Reply to this email directly, view it on GitHub, or unsubscribe. You are receiving this because you commented.Message ID: @.***>

can you give me example how to use it to [decrypt] text like as this R4PxiU3h8YoIRqVowBXm36ZcCeNeZ4s1OvVBTfFlZRdmohQqOpPQqD1YecJeZMAop/hZ4OxqgC1WtwvX/hP9mw==

@fuyunmanbu
Copy link

fuyunmanbu commented Oct 16, 2023 via email

@najm-flutter
Copy link
Author

I can't help you for the time being. I don't have my computer with me! 发自我的iPhone

------------------ Original ------------------ From: najm-flutter @.> Date: Mon,Oct 16,2023 6:50 PM To: leocavalcante/encrypt @.> Cc: fuyunmanbu @.>, Comment @.> Subject: Re: [leocavalcante/encrypt] I can't decrypt the text in 5.0.3 �� (Issue #318) Continue to use 5.0.2 发自我的iPhone … ------------------ Original ------------------ From: najm-flutter @.> Date: Mon,Oct 16,2023 5:44 PM To: leocavalcante/encrypt @.> Cc: fuyunmanbu @.>, Comment @.> Subject: Re: [leocavalcante/encrypt] I can't decrypt the text in 5.0.3 �� (Issue #318) I encountered similar problems, I found that 5.0.3 after each encryption results are different So, what is the solution? — Reply to this email directly, view it on GitHub, or unsubscribe. You are receiving this because you commented.Message ID: @.> can you give me example how to use it to [decrypt] text like as this R4PxiU3h8YoIRqVowBXm36ZcCeNeZ4s1OvVBTfFlZRdmohQqOpPQqD1YecJeZMAop/hZ4OxqgC1WtwvX/hP9mw== — Reply to this email directly, view it on GitHub, or unsubscribe. You are receiving this because you commented.Message ID: @.>

Ok Thank's

@hatemragab
Copy link

i have same problem Invalid argument(s): Invalid or corrupted pad block

@vuthasothea
Copy link

I have same problem:

image

@chaeMil
Copy link

chaeMil commented Oct 31, 2023

I get this after upgrading from 5.0.1 to 5.0.3

Unhandled Exception: Invalid argument(s): Invalid or corrupted pad block

@leocavalcante
Copy link
Owner

Duplicated #314

@leocavalcante leocavalcante added the duplicate This issue or pull request already exists label Oct 31, 2023
@Trung15010802
Copy link

Trung15010802 commented Nov 2, 2023

final iv = IV(Uint8List(16));

I use that and it's working

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
duplicate This issue or pull request already exists
Projects
None yet
Development

No branches or pull requests

7 participants