From 7b0ae3c5d9d12cdefde815e7d216da1e7fa2a44a Mon Sep 17 00:00:00 2001 From: Zeb Sadiq Date: Thu, 2 Nov 2023 14:31:42 +0000 Subject: [PATCH] Fixed one warning for Umbraco.Infrastructure . 'AesCryptoServiceProvider' is obsolete. --- src/Umbraco.Infrastructure/Security/MemberPasswordHasher.cs | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/Umbraco.Infrastructure/Security/MemberPasswordHasher.cs b/src/Umbraco.Infrastructure/Security/MemberPasswordHasher.cs index 3c7e4eabee..10b5974c52 100644 --- a/src/Umbraco.Infrastructure/Security/MemberPasswordHasher.cs +++ b/src/Umbraco.Infrastructure/Security/MemberPasswordHasher.cs @@ -131,7 +131,9 @@ public class MemberPasswordHasher : UmbracoPasswordHasher switch (algorithmName) { case "AES": - algorithm = new AesCryptoServiceProvider { Key = StringToByteArray(decryptionKey), IV = new byte[16] }; + algorithm = Aes.Create(); + algorithm.Key = StringToByteArray(decryptionKey); + algorithm.IV = new byte[16]; break; default: throw new NotSupportedException($"The algorithm ({algorithmName}) is not supported");