Skip to content

Commit 3e9aa50

Browse files
authored
Use Aes.Create for NetStandard 2.0 (#153)
Workaround for encryption/decryption issues with Xamarin projects
1 parent d2ce321 commit 3e9aa50

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

MegaApiClient/Cryptography/Crypto.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ internal class Crypto
1616

1717
static Crypto()
1818
{
19-
#if NETSTANDARD1_3
19+
#if NETSTANDARD1_3 || NETSTANDARD2_0
2020
AesCbc = Aes.Create(); // More per-call overhead but supported everywhere.
2121
IsKnownReusable = false;
2222
#else

0 commit comments

Comments
 (0)