Skip to content

Commit

Permalink
Use Aes.Create for NetStandard 2.0 (#153)
Browse files Browse the repository at this point in the history
Workaround for encryption/decryption issues with Xamarin projects
  • Loading branch information
kiddailey authored Aug 7, 2020
1 parent d2ce321 commit 3e9aa50
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion MegaApiClient/Cryptography/Crypto.cs
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ internal class Crypto

static Crypto()
{
#if NETSTANDARD1_3
#if NETSTANDARD1_3 || NETSTANDARD2_0
AesCbc = Aes.Create(); // More per-call overhead but supported everywhere.
IsKnownReusable = false;
#else
Expand Down

0 comments on commit 3e9aa50

Please sign in to comment.