xamarin / Essentials

Xamarin.Essentials is no longer supported. Migrate your apps to .NET MAUI, which includes Maui.Essentials.
https://aka.ms/xamarin-upgrade
Other
1.52k stars 505 forks source link

[Bug] SecureStorage Android crash with IllegalBlockSizeException when encrypting a base64-encoded string #1113

Open motoko89 opened 4 years ago

motoko89 commented 4 years ago

Description

Steps to Reproduce

  1. Call await SecureStorage.SetAsync("key", "abase64-encodedstring");

Expected Behavior

Actual Behavior

The crash is at line 286 https://github.com/xamarin/Essentials/blob/master/Xamarin.Essentials/SecureStorage/SecureStorage.android.cs

Basic Information

Screenshots

Reproduction Link

vhugogarcia commented 4 years ago

I am facing the same issue. Is there any workaround for this?