# Upgrade version 3.1 to 4 As of .NET 7, the [`RijndaelManaged` class](https://learn.microsoft.com/en-us/dotnet/api/system.security.cryptography.rijndaelmanaged) is obsolete and not recommended. The replacement class, [`AesManaged`](https://learn.microsoft.com/en-us/dotnet/api/system.security.cryptography.aesmanaged) is backward-compatible with the old class in that messages encrypted with `RijdaelManaged` can be decrypted by `AesManaged` and vice versa. ## RijdaelEncryptionService The `RijdaelEncryptionService` has been removed. Use `AesEncryptionService` instead. In most cases, upgrading involves replacing all instances of `RijndaelEncryptionService` with `AesEncryptionService`. No further code changes are necessary.